<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIListContentConfiguration-swift.struct/directionalLayoutMargins",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit26UIListContentConfigurationV24directionalLayoutMarginsSo23NSDirectionalEdgeInsetsVvp"
  },
  "title" : "directionalLayoutMargins"
}
-->

# directionalLayoutMargins

The margins between the content and the edges of the content view.

```
var directionalLayoutMargins: NSDirectionalEdgeInsets { get set }
```

## Discussion

When you preserve superview layout margins on one or both axes, this value specifies the minimum margins. The inherited margins may be larger.

By default, the content view preserves the layout margins of its superview on both axes. You can customize this behavior by changing [`axesPreservingSuperviewLayoutMargins`](/documentation/UIKit/UIListContentConfiguration-swift.struct/axesPreservingSuperviewLayoutMargins).

---

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)