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

# systemMinimumLayoutMargins

The minimum layout margins for the view controller’s root view.

```
var systemMinimumLayoutMargins: NSDirectionalEdgeInsets { get }
```

## Discussion

This property contains the minimum layout margins expected by the system for the view controller’s root view. Do not override this property. To stop considering the system’s minimum layout margins for the root view, set the [`viewRespectsSystemMinimumLayoutMargins`](/documentation/UIKit/UIViewController/viewRespectsSystemMinimumLayoutMargins) property to <doc://com.apple.documentation/documentation/Swift/false>. This property does not affect the margins associated with subviews of the root view.

If you assign a custom value to the [`directionalLayoutMargins`](/documentation/UIKit/UIView/directionalLayoutMargins) property of the view controller’s root view, the root view’s actual margins are set to either your custom values or the minimum values defined by this property, whichever values are greater. For example, if the value for one system minimum margin is `20` points and you specify a value of `10` for the same margin on the view, the view uses the value `20` for the margin.

---

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)