Reloads the content of this layer.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Animation
Do not call this method directly. The layer calls this method at appropriate times to update the layer’s content. If the layer has a delegate object, this method attempts to call the delegate’s
display(_:) method, which the delegate can use to update the layer’s contents. If the delegate does not implement the
display(_:) method, this method creates a backing store and calls the layer’s
draw(in:) method to fill that backing store with content. The new backing store replaces the previous contents of the layer.
Subclasses can override this method and use it to set the layer’s
contents property directly. You might do this if your custom layer subclass handles layer updates differently.