Instance Method


Returns the model layer object associated with the receiver, if any.


- (instancetype)modelLayer;

Return Value

A layer instance representing the underlying model layer.


Calling this method on a layer in the presentation tree returns the corresponding layer object in the model tree. This method returns a value only when a transaction involving changes to the presentation layer is in progress. If no transaction is in progress, the results of calling this method are undefined.

See Also

Accessing Related Layer Objects

- presentationLayer

Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen.

Beta Software

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.

Learn more about using Apple's beta software