The object responsible for laying out the layer’s sublayers.
SDKs
- macOS 10.5+
- Mac Catalyst 13.0+
Framework
- Core Animation
Declaration
var layoutManager: CALayout Manager? { get set }
Discussion
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 CAConstraint
class to this property if your layer uses layer-based constraints to handle layout changes.
The default value of this property is nil
.