Summary
In this chapter, you learned a lot about animation. You now know that you can easily animate a view's property using the powerful UIViewPropertyAnimator
object. You learned what timing functions are and how they affect animations. Also, more importantly, you saw how to make use of springs and UIKit Dynamics to make your animations look more lifelike. After learning some animation basics, you also learned how to add custom animations to view-controller transitions. The complexity of this does not necessarily lie in the animations themselves. The web of collaborating objects makes it difficult to understand custom view-controller transitions at first. Once you have implemented this a few times, it will get easier to make sense of all the moving parts, and you'll see how all the building blocks fall into place.
Despite the amount of information already present in this chapter, it does not cover every single aspect of animation. Just the most important parts of animations are covered...