<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/insetsLayoutMarginsFromSafeArea",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)insetsLayoutMarginsFromSafeArea"
  },
  "title" : "insetsLayoutMarginsFromSafeArea"
}
-->

# insetsLayoutMarginsFromSafeArea

A Boolean value indicating whether the view’s layout margins are updated automatically to reflect the safe area.

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, any margins that are outside the safe area are automatically modified to fall within the safe area boundary. The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>. Changing the value to <doc://com.apple.documentation/documentation/Swift/false> allows your margins to remain at their original locations, even when they are outside the safe area.

---

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)