<!--
{
  "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/UIViewController/viewRespectsSystemMinimumLayoutMargins",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)viewRespectsSystemMinimumLayoutMargins"
  },
  "title" : "viewRespectsSystemMinimumLayoutMargins"
}
-->

# viewRespectsSystemMinimumLayoutMargins

A Boolean value indicating whether the view controller’s view uses the system-defined minimum layout margins.

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the root view’s layout margins are guaranteed to be no smaller than the values in the [`systemMinimumLayoutMargins`](/documentation/UIKit/UIViewController/systemMinimumLayoutMargins) property. The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>.

Changing this property to <doc://com.apple.documentation/documentation/Swift/false> causes the view to obtain its margins solely from its [`directionalLayoutMargins`](/documentation/UIKit/UIView/directionalLayoutMargins) property. Setting the margins in that property to `0` allows you to eliminate the view’s margins altogether.

---

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)