---
title: insetsLayoutMarginsFromSafeArea
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/insetslayoutmarginsfromsafearea
---

# insetsLayoutMarginsFromSafeArea

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

## Declaration

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

## Mentioned in

Positioning content within layout margins

## Discussion

Discussion When the value of this property is 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 true. Changing the value to false allows your margins to remain at their original locations, even when they are outside the safe area.

## See Also

### Getting the safe area

- [Positioning content relative to the safe area](uikit/positioning-content-relative-to-the-safe-area.md)
- [safeAreaInsets](uikit/uiview/safeareainsets.md)
- [safeAreaLayoutGuide](uikit/uiview/safearealayoutguide.md)
- [safeAreaInsetsDidChange()](uikit/uiview/safeareainsetsdidchange().md)
