<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBackgroundExtensionView/automaticallyPlacesContentView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBackgroundExtensionView(py)automaticallyPlacesContentView"
  },
  "title" : "automaticallyPlacesContentView"
}
-->

# automaticallyPlacesContentView

Controls the automatic safe area placement of the `contentView` within the
container.

```
var automaticallyPlacesContentView: Bool { get set }
```

## Discussion

When `NO`, the frame of the content view must be explicitly set or
constraints added. The extension effect will be used to fill the container
view around the content.

Defaults to `YES`.

---

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)