---
title: directionalLayoutMargins
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilistcontentconfiguration-swift.struct/directionallayoutmargins
---

# directionalLayoutMargins

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

## Declaration

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

## Discussion

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.

## See Also

### Customizing layout

- [axesPreservingSuperviewLayoutMargins](uikit/uilistcontentconfiguration-swift.struct/axespreservingsuperviewlayoutmargins.md)
- [prefersSideBySideTextAndSecondaryText](uikit/uilistcontentconfiguration-swift.struct/preferssidebysidetextandsecondarytext.md)
- [imageToTextPadding](uikit/uilistcontentconfiguration-swift.struct/imagetotextpadding.md)
- [textToSecondaryTextHorizontalPadding](uikit/uilistcontentconfiguration-swift.struct/texttosecondarytexthorizontalpadding.md)
- [textToSecondaryTextVerticalPadding](uikit/uilistcontentconfiguration-swift.struct/texttosecondarytextverticalpadding.md)
