An object that provides the contents of the layer. Animatable.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- Core Animation
The default value of this property is
If you are using the layer to display a static image, you can set this property to the
CGImage containing the image you want to display. (In macOS 10.6 and later, you can also set the property to an
NSImage object.) Assigning a value to this property causes the layer to use your image rather than create a separate backing store.
If the layer object is tied to a view object, you should avoid setting the contents of this property directly. The interplay between views and layers usually results in the view replacing the contents of this property during a subsequent update.