Beginning iOS Animations · Challenge: Practice Keyframes | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9051-beginning-ios-animations/lessons/19

@catie, @jessycatterwaul, please explain why in Packing List app animation did not work without layoutIfNeeded() meanwhile everything works well in Flight Info app?

I mentioned this in the episode on Animating View Properties at around 2:10.

In the Flight Info app, we’re animating view properties directly. In the Packing List app, we were changing or replacing constraints and letting auto layout animate the difference. You only need the call to layoutIfNeeded() when you’re animating via auto layout constraints :]

1 Like

Oh! It turned out to be so obvious! Thanks :blush:

1 Like