Chapter 6. Layers and Core Animation

Despite its name, core animation is much more than just animation. At the core of this framework, there is the CALayer class that, as we'll discuss in this chapter, is fundamental for the UIView class as a "presenter" for any view's drawing operation.

In this chapter, you'll learn how to work with layers and perform simple and complex animations with core animation and the UIView helper functions.

Exploring layers

Layers are behind almost all the views you encounter in iOS, and they are the very base of anything you do with core animation.

The CALayer class represents layers, and their main role is presenting content in a lightweight mode. The content is almost never drawn by the layer itself, but it is received ...

Get Learning iOS UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.