Returns the preferred size of the layer in the coordinate space of its superlayer.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The layer’s preferred frame size.
In macOS, the default implementation of this method calls the preferredSizeOfLayer: method of its layout manager—that is, the object in its
layoutManager property. If that object does not exist or does not implement that method, this method returns the size of the layer’s current
bounds rectangle mapped into the coordinate space of its
Managing Layer Resizing and Layout
The object responsible for laying out the layer’s sublayers.
Invalidates the layer’s layout and marks it as needing an update.
Returns a Boolean indicating whether the layer has been marked as needing a layout update.
A bitmask defining how the layer is resized when the bounds of its superlayer changes.
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