<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/layerContentsPlacement-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)layerContentsPlacement"
  },
  "title" : "layerContentsPlacement"
}
-->

# layerContentsPlacement

The current layer contents placement policy.

```
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 <doc://com.apple.documentation/documentation/QuartzCore/CALayer/contentsGravity> property of the <doc://com.apple.documentation/documentation/QuartzCore/CALayer> class. The default value of this property is [`NSView.LayerContentsPlacement.scaleAxesIndependently`](/documentation/AppKit/NSView/LayerContentsPlacement-swift.enum/scaleAxesIndependently). For a list of supported values, see [`NSView.LayerContentsPlacement`](/documentation/AppKit/NSView/LayerContentsPlacement-swift.enum).

For additional information about the performance impacts of this property, see the [`layerContentsRedrawPolicy`](/documentation/AppKit/NSView/layerContentsRedrawPolicy-swift.property) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)