Summary
What a long chapter that turned out to be. As mentioned already, the available space only allows us to introduce a subset of the features accessible through Core Animation.
You have learned the following in this chapter:
- How to use
CALayerfor graphics rendering - Using CALayer's subclasses:
CAShapeLayer,CATextLayer, andCATransformLayer - Rotating, resizing, and translating layers
- Using implicit animation with
CALayer - The purposes and methods of several flavors of animation, including basic, key-frame, and group animations
- Using
CAMediaTimingobjects to coordinate several staggered animations - Wrapping property changes in
CATransactionblocks, and how to nest transactions - 3D drawing and a brief look at its matrix-based model
- Animating NSViews directly using
NSAnimationContext
In the next chapter, we'll take a look at Swift's error-handling features.