Contents

safeAreaRegions

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

Declaration

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

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