<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SafeAreaRegions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15SafeAreaRegionsV"
  },
  "title" : "SafeAreaRegions"
}
-->

# SafeAreaRegions

A set of symbolic safe area regions.

```
@frozen struct SafeAreaRegions
```

## Topics

### Getting safe area regions

[`all`](/documentation/SwiftUI/SafeAreaRegions/all)

All safe area regions.

[`container`](/documentation/SwiftUI/SafeAreaRegions/container)

The safe area defined by the device and containers within the
user interface, including elements such as top and bottom bars.

[`keyboard`](/documentation/SwiftUI/SafeAreaRegions/keyboard)

The safe area matching the current extent of any software
keyboard displayed over the view content.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)