---
title: "reservedRegions(kind:options:layoutDirectionBehavior:)"
framework: SwiftUI
role: symbol
role_heading: Instance Method
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "swiftui/geometryproxy/reservedregions(kind:options:layoutdirectionbehavior:)"
---

# reservedRegions(kind:options:layoutDirectionBehavior:)

Returns an array of reserved regions that match the selection options you specify.

## Declaration

```swift
func reservedRegions(kind: ReservedRegion.Kind, options: ReservedRegion.QueryOptions = [], layoutDirectionBehavior: LayoutDirectionBehavior = .mirrors) -> [ReservedRegion]
```

## Discussion

Discussion 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, take care to consider right-to-left layout directions. Reserved regions are typically in a fixed coordinate space; the absolute location of the camera of a device 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 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.

## See Also

### Measuring a view

- [GeometryReader](swiftui/geometryreader.md)
- [GeometryReader3D](swiftui/geometryreader3d.md)
- [GeometryProxy](swiftui/geometryproxy.md)
- [ReservedRegion](swiftui/reservedregion.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)
