---
title: "Reserved Regions | Explore SwiftUI"
description: "Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own"
canonical_url: "https://exploreswiftui.com/library/geometryreader/reserved-regions"
meta:
  author: "Explore SwiftUI"
  "og:description": "Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Reserved%2BRegions%2Cdescription_~UmV0dXJucyB0aGUgcmVzZXJ2ZWQgcmVnaW9ucyBmb3IgdGhlIGdpdmVuIGtpbmQuIEEgcmVzZXJ2ZWQgcmVnaW9uIGluZGljYXRlcyB0aGF0IGFuIGFyZWEgd2l0aGluIGEgdmlld-KAmXMgY29vcmRpbmF0ZSBzcGFjZSBoYXMgYmVlbiBjbGFpbWVkIGJ5IHNvbWV0aGluZyB0aGUgdmlldyBkb2VzIG5vdCBvd24%2Ccategory_GeometryReader%2Cimage_~L2FwaS9pbWFnZXMvMjUzL3ZhcmlhbnRzLzE4MTE~dj0xNzkwNTg3ODU1Njc0JnI9MiZ3PTY0MCZoPTQ4MCZmPXBuZw%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~Ym9yZGVyLXJhZGl1czogMHB4IDBweCAwcHggMHB4OyBib3JkZXI6IDFweCBzb2xpZCByZ2JhKDAsMCwwLDAuMDYpOyBib3JkZXItcmlnaHQ6IDA7IGJveC1zaGFkb3c6IDAgLTEwcHggNTBweCByZ2JhKDM3LDk5LDIzNSwwLjE4KTs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIl19%2Cp_Ii9saWJyYXJ5L2dlb21ldHJ5cmVhZGVyL3Jlc2VydmVkLXJlZ2lvbnMi%2Cs_owxtwmxv7tqpAYHg.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Reserved Regions | Explore SwiftUI"
  "twitter:description": "Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Reserved%2BRegions%2Cdescription_~UmV0dXJucyB0aGUgcmVzZXJ2ZWQgcmVnaW9ucyBmb3IgdGhlIGdpdmVuIGtpbmQuIEEgcmVzZXJ2ZWQgcmVnaW9uIGluZGljYXRlcyB0aGF0IGFuIGFyZWEgd2l0aGluIGEgdmlld-KAmXMgY29vcmRpbmF0ZSBzcGFjZSBoYXMgYmVlbiBjbGFpbWVkIGJ5IHNvbWV0aGluZyB0aGUgdmlldyBkb2VzIG5vdCBvd24%2Ccategory_GeometryReader%2Cimage_~L2FwaS9pbWFnZXMvMjUzL3ZhcmlhbnRzLzE4MTE~dj0xNzkwNTg3ODU1Njc0JnI9MiZ3PTY0MCZoPTQ4MCZmPXBuZw%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~Ym9yZGVyLXJhZGl1czogMHB4IDBweCAwcHggMHB4OyBib3JkZXI6IDFweCBzb2xpZCByZ2JhKDAsMCwwLDAuMDYpOyBib3JkZXItcmlnaHQ6IDA7IGJveC1zaGFkb3c6IDAgLTEwcHggNTBweCByZ2JhKDM3LDk5LDIzNSwwLjE4KTs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIl19%2Cp_Ii9saWJyYXJ5L2dlb21ldHJ5cmVhZGVyL3Jlc2VydmVkLXJlZ2lvbnMi%2Cs_owxtwmxv7tqpAYHg.png"
  "twitter:title": "Reserved Regions | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone Duo](https://exploreswiftui.com/duo?element=253)

# **Reserved Regions**

Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own

![Reserved Regions - Preview Not Available](https://exploreswiftui.com/api/images/253/variants/1811?v=1790587855674&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 27.1+ iPadOS 27.1+

### **Tags**

### **SwiftUI Code**

[ Docs](<https://developer.apple.com/documentation/swiftui/geometryproxy/reservedregions(kind:options:layoutdirectionbehavior:)>)

```
var body: some View {
    GeometryReader { proxy in
        ZStack(alignment: .topLeading) {
            ForEach(proxy.reservedRegions(kind: .division)) { region in
                regionView(region, color: .blue)
            }

            ForEach(proxy.reservedRegions(kind: .occlusion)) { region in
                regionView(region, color: .orange)
            }
        }
    }
}

private func regionView(_ region: ReservedRegion, color: Color) -> some View {
    Rectangle()
        .fill(color)
        .frame(width: region.frame.width, height: region.frame.height)
        .offset(x: region.frame.minX, y: region.frame.minY)
}
```

### **Found an issue or have a suggestion?**

Created: September 28, 2026Updated: September 28, 2026

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Product View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/202/variants/509?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Product View**

Creates a view to load and merchandise an individual product from the App Store.

![Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/30/variants/175?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button**

Three ways to initialize a button

![AccessoryLinearCapacityGaugeStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/45/variants/257?v=1790073478842&r=2&w=412&q=75&f=webp)

### **AccessoryLinearCapacityGaugeStyle**

A gauge style that displays bar that fills from leading to trailing edges as the gauge’s current value increases

![Glass Effect Container - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/96/variants/377?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Glass Effect Container**

A view that combines multiple Liquid Glass shapes into a single shape that can morph individual shapes into one another

![Restore Purchases Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/217/variants/77?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Restore Purchases Button**

A type of button that people use to restore purchases.

![List Badge - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/123/variants/349?v=1790073478842&r=2&w=412&q=75&f=webp)

### **List Badge**

Generates a badge for the view from an integer value.

![Hidden List Section Separator - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/119/variants/293?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Hidden List Section Separator**

Sets whether to hide the separator associated with a list section.

![Fitted Sheet Sizing - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/143/variants/474?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Fitted Sheet Sizing**

Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#webpage","@type":"WebPage","dateModified":"2026-09-28T09:30:55.705Z","datePublished":"2026-09-28T09:28:07.432Z","description":"Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own","name":"Reserved Regions","url":"https://exploreswiftui.com/library/geometryreader/reserved-regions","breadcrumb":{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/geometryreader/reserved-regions"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#article","citation":"https://developer.apple.com/documentation/swiftui/geometryproxy/reservedregions(kind:options:layoutdirectionbehavior:)","dateModified":"2026-09-28T09:30:55.705Z","datePublished":"2026-09-28T09:28:07.432Z","description":"Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own","headline":"Reserved Regions","inLanguage":"en-US","name":"Reserved Regions","thumbnailUrl":"https://exploreswiftui.com/api/images/253/variants/1811?v=1790587855674&r=2","url":"https://exploreswiftui.com/library/geometryreader/reserved-regions","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own","name":"Reserved Regions SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"var body: some View {\n    GeometryReader { proxy in\n        ZStack(alignment: .topLeading) {\n            ForEach(proxy.reservedRegions(kind: .division)) { region in\n                regionView(region, color: .blue)\n            }\n\n            ForEach(proxy.reservedRegions(kind: .occlusion)) { region in\n                regionView(region, color: .orange)\n            }\n        }\n    }\n}\n\nprivate func regionView(_ region: ReservedRegion, color: Color) -> some View {\n    Rectangle()\n        .fill(color)\n        .frame(width: region.frame.width, height: region.frame.height)\n        .offset(x: region.frame.minX, y: region.frame.minY)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"GeometryReader"},{"@type":"Thing","name":"Reserved Regions"}]},{"@id":"https://exploreswiftui.com/library/geometryreader/reserved-regions#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"GeometryReader","item":"https://exploreswiftui.com/library/geometryreader","position":2},{"@type":"ListItem","name":"Reserved Regions","item":"https://exploreswiftui.com/library/geometryreader/reserved-regions","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/253/variants/1811?v=1790587855674&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/253/variants/1811?v=1790587855674&r=2"}]}
```