How to Animate with Auto Layout Constraints

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 51

  • @antonlebedev2890
    @antonlebedev2890 Год назад

    Animating buttons is the final touch to my app. And again, thank you Mr. Voong))

  • @deltawhiskey6243
    @deltawhiskey6243 4 года назад

    That part @ 11:15 is REALLY important. I was making this mistake and couldn't figure out why my views weren't animating. Make sure to call the layoutIfNeeded() on the superview of the view you want to animate. Thanks Brian. U da man!

    • @LetsBuildThatApp
      @LetsBuildThatApp  4 года назад

      It’s really important that you get all the small details correct. One tiny line of code that is missing can usually lead to a few hours of debugging.

  • @КириллПопов-е1я
    @КириллПопов-е1я 3 года назад

    You are magnificent man, keep up doing your staff. You make a huge difference!!!

  • @srsh12345
    @srsh12345 5 лет назад

    Great video. Every solution I was finding elsewhere was avoiding auto-layout which brought other problems in my app design. Thank you for sharing something so useful

  • @djskywalkerremix
    @djskywalkerremix 7 лет назад

    This video could not have been anymore perfectly timed!! You superstar :) AMAZING content as always.

  • @madgreenduck4057
    @madgreenduck4057 7 лет назад

    I'm glad to see you again, Brian! Great lesson as always:)

  • @rafaeashraf605
    @rafaeashraf605 6 лет назад +2

    BRIAN YOU'RE A FLIPPIN GENIUS! I've been stuck on this for ages 2 weeks almost. I had a bunch of custom ui buttons that I made and was using the frame.origin.x to move it around. BUT IVE FIGURED IT OUT WITH CONSTRAINTS. Btw I'm taking your next course! You the best

    • @LetsBuildThatApp
      @LetsBuildThatApp  6 лет назад +1

      Excellent, the slide out menu course also uses constraints for animations. It’s a really helpful technique to learn.

    • @rafaeashraf605
      @rafaeashraf605 6 лет назад

      It most certainly is. Without the constraints the custom UIButtons animate all over the place in the wrong direction. Animation is much easier since you just apply the constraints and call layoutIfNeeded. Are you using a ContainerView to retain the state of each viewController in the slide out menu?
      Any plans on having a course that showcases different UI designs and what the best kind of interaction would be for each use case? For example custom sliders, dropdowns, draggable buttons, uigesturepan stuff etc? building up a library of you're own components
      I've said too much :)

    • @LetsBuildThatApp
      @LetsBuildThatApp  6 лет назад

      There is a container view that holds both the right side and menu panel on the left. As we drag using a UIPanGestureRecognizer, we're simply manipulation the constraint constants. With the combination of animations and curves, we generate a really nice looking swiping menu system.

  • @dilshadalihaidari8102
    @dilshadalihaidari8102 7 лет назад

    I am a big fan of you and have learnt a lot from your video. I hope you will value my request....Most of the applications have parallax effect...i always prefer not to use any third party library.... Please make a tutorial video...would be helpful to all your viewers and fans...

  • @valentinskukjans5911
    @valentinskukjans5911 7 лет назад

    Great videos Brian. You are the best. Looking forward from you some more complex and advance topics like Multithreading. Thanks.

  • @sean721888
    @sean721888 7 лет назад

    Great video! How much do you use coreGraphics for custom control components? Such as subclass UIButton ?

  • @brandonb6175
    @brandonb6175 7 лет назад

    Thanks so much Brian! Keep up the great work you are an amazing person!

  • @Abdi-uy1kh
    @Abdi-uy1kh 7 лет назад

    thanks for videos Brian. Have you ever worked with iBeacons before? I wonder if big stores use it.

  • @sahilberi5759
    @sahilberi5759 6 лет назад

    Whenever I watch your videos I always learn something new. and thanks for teaching the new trick :D

  • @Achto454
    @Achto454 3 года назад

    Great, thanks a lot!

  • @kristofferkokus6774
    @kristofferkokus6774 5 лет назад

    Great! Helped me a lot, like every video!

  • @viddeoshuffle
    @viddeoshuffle 7 лет назад

    Excelente! Estoy aprendiendo mucho de ti 😃😃. Gracias!

  • @Miguel-qe8xv
    @Miguel-qe8xv 6 лет назад

    I'm having an issue where I'm animating a UIButton onto the screen from the top. The thing is that the background disappears when traveling through the safeAreaLayout zone while the text remains visible. Have you come across anything like this?

  • @eduardodavila5213
    @eduardodavila5213 5 лет назад

    Thank you Brian!!

  • @danielwennberg1668
    @danielwennberg1668 7 лет назад

    Great vid. Would be nice to get some more complex videos as well. I really like your content and way off teaching and would love for you to delve into some more advanced topics.

  • @james_rawls
    @james_rawls 7 лет назад

    Love your work!!!!

  • @JohanAlbrectsen
    @JohanAlbrectsen 6 лет назад +1

    I love your videos!!!!!!!!

  • @MattDuarte11
    @MattDuarte11 7 лет назад

    So is the constructor a function? I new to iOS. Gonna take a udemy course on it though.

  • @davidtsoraev8863
    @davidtsoraev8863 7 лет назад

    Thanks for the video! Could you please explain how to perform animations between, for example, 2 separate scroll views? I mean if i want to move UIImage from one SView to another with animation?

    • @danielwennberg1668
      @danielwennberg1668 7 лет назад +1

      You would probably have to animate the presentation layer by using CGAffineTransform and then update the actual views by removing and adding the subviews to the new view when the animation finishes.. just a quick thought.

    • @davidtsoraev8863
      @davidtsoraev8863 7 лет назад

      Thanks, man

  • @farshidshokrollahi3502
    @farshidshokrollahi3502 7 лет назад

    hi Brian, could you please make a tutorial to use Adcolony in our swift ios project , there isn't any tutorial for this, and the documentation of adcolony is not clear . thank you

  • @robertoviana514
    @robertoviana514 7 лет назад

    Great videos. Just a friendly alternative solution to accessing the buttons function would be to add a parameter to the func, as follows: @objc func handleAnimate(sender: UIButton), with that you should be able to get rid of the Lazy variable and use let. Again great videos. keep up the great work.

  • @albertlu8407
    @albertlu8407 7 лет назад +1

    Perfect tutorial!

  • @huseyintufekci4417
    @huseyintufekci4417 5 лет назад

    Hey brian, i’m doing your instagram course at the moment. Besides i’m trying things out like animations. But i have a questions.
    Is this how you would do it in a real time project. ?
    Love your videos btw.

    • @LetsBuildThatApp
      @LetsBuildThatApp  5 лет назад

      I find there are many ways to build out your applications. I typically go with the easiest and most flexible solutions.

  • @lebum3130
    @lebum3130 7 лет назад

    支持大佬,大佬加油,马上就要去北京找工作了,可是我的github就两个我个人做的开源项目,然后刷了点leetcode,我最怕问到线程的问题,大佬能否给点意见呢?

    • @lebum3130
      @lebum3130 7 лет назад

      另外,大陆最近开始大力打击VPN !!!!!

  • @sminkly
    @sminkly 7 лет назад

    Hi. It used to be that if you tried to use self in the block that creates the image view you would get an error - telling you to use lazy var. But watching this you don't seem to any more. I wonder why that changed.

    • @LetsBuildThatApp
      @LetsBuildThatApp  7 лет назад

      This syntax has worked from Swift 1, 2, 3, 4. The lazy var compiler error is referring to something else.

    • @sminkly
      @sminkly 7 лет назад

      Thanks for the clarification. I must have been doing something else wrong.

  • @febinpaul4352
    @febinpaul4352 7 лет назад

    How a developer has to build the UI in Xcode to match the PSD perfectly in all screen size. ie if a design is built for iPhone x, which contains 5 visible cell of tableview in the PSD. How to use the Autolayout constraints such as it PSD matches for all screen size. Can you make a video for that ... Thank you :)

  • @thientran-cl4zd
    @thientran-cl4zd 7 лет назад

    Please help me to explain about UIScrollView

  • @ryantemple3502
    @ryantemple3502 7 лет назад +2

    Lol 5:25 420 blaze it

  • @tenminutetokyo2643
    @tenminutetokyo2643 7 лет назад

    DOOOD!