---
title: safeAreaRegions
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/uihostingcontroller/safearearegions
---

# safeAreaRegions

The safe area regions that this view controller adds to its view.

## Declaration

```swift
@MainActor @preconcurrency var safeAreaRegions: SafeAreaRegions { get set }
```

## Discussion

Discussion An example of when this is appropriate to use is when hosting content that you know should never be affected by the safe area, such as a custom scrollable container. Disabling a safe area region omits it from the SwiftUI layout system altogether. The default value is SafeAreaRegions.all.

## See Also

### Managing the size

- [sizingOptions](swiftui/uihostingcontroller/sizingoptions.md)
- [preferredContentSizeDidChange(forChildContentContainer:)](swiftui/uihostingcontroller/preferredcontentsizedidchange(forchildcontentcontainer:).md)
- [sizeThatFits(in:)](swiftui/uihostingcontroller/sizethatfits(in:).md)
