---
title: ReservedRegion
framework: SwiftUI
role: symbol
role_heading: Structure
platforms: [iOS 27.1+, iPadOS 27.1+]
path: swiftui/reservedregion
---

# ReservedRegion

A region within a view’s coordinate space that another entity reserves.

## Declaration

```swift
struct ReservedRegion
```

## Overview

Overview A reserved region indicates an area within a view’s coordinate space that an entity, such as the device hardware, reserves. Arrange the view’s content to account for this region. Each region describes a frame, margins, active state, and an identifier. There are two categories of reserved regions: Read reserved regions using the reservedRegions(kind:options:layoutDirectionBehavior:) method, which returns all of the reserved regions that currently intersect your view regardless of whether they are currently active. In the example below, a custom Layout uses the reserved regions from a GeometryProxy instance to handle positioning its subviews away from any regions that intersect it. GeometryReader { proxy in     RegionAvoidingLayout(         regions: proxy.reservedRegions(kind: .occlusion)     ) {         ForEach(items) { item in             ItemView(item)         }     } }     When you manually position your content to incorporate reserved regions, consider right-to-left layout directions. Reserved regions are typically in a fixed coordinate space; the absolute location of a device’s camera doesn’t flip depending on a person’s preferred language. By default, the system mirrors the geometry of these regions automatically before it provides them to SwiftUI APIs. For example, a Layout automatically flips the geometry of the subviews you place. By mirroring the geometry of the reserved regions, your layout doesn’t need to account for the layout direction when determining whether a particular subview intersects the region. There may be cases when you need to make more manual adjustments for the frames of reserved regions for right-to-left layout directions. In these cases, you can provide the LayoutDirectionBehavior.fixed value to the method and the system doesn’t mirror the frames of the regions.

## Topics

### Getting region details

- [id](swiftui/reservedregion/id-swift.property.md)
- [ReservedRegion.ID](swiftui/reservedregion/id-swift.struct.md)
- [frame](swiftui/reservedregion/frame.md)
- [isActive](swiftui/reservedregion/isactive.md)
- [kind](swiftui/reservedregion/kind-swift.property.md)
- [ReservedRegion.Kind](swiftui/reservedregion/kind-swift.struct.md)
- [margins](swiftui/reservedregion/margins.md)

### Querying reserved regions

- [ReservedRegion.QueryOptions](swiftui/reservedregion/queryoptions.md)

### Default Implementations

- [Identifiable Implementations](swiftui/reservedregion/identifiable-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Measuring a view

- [GeometryReader](swiftui/geometryreader.md)
- [GeometryReader3D](swiftui/geometryreader3d.md)
- [GeometryProxy](swiftui/geometryproxy.md)
- [reservedRegions(kind:options:layoutDirectionBehavior:)](swiftui/geometryproxy/reservedregions(kind:options:layoutdirectionbehavior:).md)
- [GeometryProxy3D](swiftui/geometryproxy3d.md)
- [coordinateSpace(_:)](swiftui/view/coordinatespace(_:).md)
- [CoordinateSpace](swiftui/coordinatespace.md)
- [CoordinateSpaceProtocol](swiftui/coordinatespaceprotocol.md)
- [PhysicalMetric](swiftui/physicalmetric.md)
- [PhysicalMetricsConverter](swiftui/physicalmetricsconverter.md)
