Instance Property

contents

An object that provides the contents of the layer. Animatable.

Declaration

var contents: Any? { get set }

Discussion

A layer can set this property to a CGImage to display the image as its contents.

The default value of this property is nil.

See Also

Providing Emitter Cell Content

var contentsRect: CGRect

A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable.

var emitterCells: [CAEmitterCell]?

An optional array containing the sub-cells of this cell.