Tells the delegate to implement the display process.
Mac Catalyst 13.0+Beta
The layer whose contents need updating.
The display(_:) delegate method is called when the layer is marked for its content to be reloaded, typically initiated by the setNeedsDisplay() method. The typical technique for updating is to set the layer's contents property.
Listing 1 shows how you can create a class named LayerDelegate that implements CALayerDelegate and sets it as a layer's (named sublayer) delegate. When setNeedsDisplay() is called on sublayer, the delegate's display(_:) replaces its contents with a specified image.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.