Skip to main content
regions
SafeAreaRegions
Which safe area regions to ignore. One of "container", "keyboard", or "all". Defaults to "all".
edges
EdgeSet
Which edges to extend into. See Edge. Defaults to "all".

Support

Usage

Ignoring all safe areas

Background that extends behind the status bar

Ignoring only the keyboard safe area

Extending into specific edges

Notes

  • On devices with notches or home indicators, content normally avoids the safe area insets. This modifier lets components extend into those regions.
  • Common use cases include full-bleed background colors, hero images that extend behind the status bar, and input views that should not shift when the keyboard appears.

See Also

  • safeAreaInset — adds content to the safe area, pushing main content inward