CALayer is a Core Animation class in the Quartz Core framework. It encapsulates the geometry and presentation of a layer. It supports animations of the layer's geometry and its content.
The layer classes are the foundation of Core Animation and provide an abstraction that should be familiar to developers who have used NSView
or UIView
. Basic layer functionality is provided by the CALayer
class, which is the parent class for all types of Core Animation layers.
The CALayer
class is the model class for layer-tree objects. It encapsulates the position, size, and transform of a layer, which defines its coordinate system. It also encapsulates the duration and pacing of a layer and its animations by adopting the CAMediaTiming
protocol, which defines a layer’s time space.