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

# safeAreaInsets

The distances from the edges of your view that define the safe area.

```
var safeAreaInsets: NSEdgeInsets { get }
```

## Discussion

A view’s safe area reflects the portion of the view not covered by the window’s title bar or any ancestor views. This property reflects the superview’s safe area plus any additional insets you specify in the [`additionalSafeAreaInsets`](/documentation/AppKit/NSView/additionalSafeAreaInsets) property. If the view is not currently installed in a view hierarchy, or is not yet visible onscreen, the insets in this property are `0`.

---

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)