layerContentsPlacement
The current layer contents placement policy.
Declaration
var layerContentsPlacement: NSView.LayerContentsPlacement { get set }Discussion
The content placement determines how the backing layer’s existing cached content image will be mapped into the layer as the layer is resized. It is analogous to, and underpinned by, the contentsGravity property of the CALayer class. The default value of this property is NSView.LayerContentsPlacement.scaleAxesIndependently. For a list of supported values, see NSView.LayerContentsPlacement.
For additional information about the performance impacts of this property, see the layerContentsRedrawPolicy property.