---
title: layerContentsPlacement
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/layercontentsplacement-swift.property
---

# layerContentsPlacement

The current layer contents placement policy.

## Declaration

```swift
var layerContentsPlacement: NSView.LayerContentsPlacement { get set }
```

## Discussion

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.

## See Also

### Managing the View’s Layer

- [wantsLayer](appkit/nsview/wantslayer.md)
- [wantsUpdateLayer](appkit/nsview/wantsupdatelayer.md)
- [layer](appkit/nsview/layer.md)
- [makeBackingLayer()](appkit/nsview/makebackinglayer().md)
- [NSView.LayerContentsPlacement](appkit/nsview/layercontentsplacement-swift.enum.md)
- [layerContentsRedrawPolicy](appkit/nsview/layercontentsredrawpolicy-swift.property.md)
- [NSView.LayerContentsRedrawPolicy](appkit/nsview/layercontentsredrawpolicy-swift.enum.md)
- [canDrawSubviewsIntoLayer](appkit/nsview/candrawsubviewsintolayer.md)
- [layerUsesCoreImageFilters](appkit/nsview/layerusescoreimagefilters.md)
- [NSViewLayerContentScaleDelegate](appkit/nsviewlayercontentscaledelegate.md)
