The object responsible for laying out the layer’s sublayers.
- macOS 10.5+
- Mac Catalyst 13.0+Beta
The object you assign to this property must nominally implement the CALayoutManager Informal Protocol informal protocol. If the layer’s delegate does not handle layout updates, the object assigned to this property is given a chance to update the layout of the layer’s sublayers.
In macOS, assign an instance of the
CAConstraintLayoutManager class to this property if your layer uses layer-based constraints to handle layout changes.
The default value of this property is
Managing Layer Resizing and Layout
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.
Returns the preferred size of the layer in the coordinate space of its superlayer.
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