<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GeometryProxy/containerCornerInsets",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13GeometryProxyV21containerCornerInsetsAA09RectanglefG0Vvp"
  },
  "title" : "containerCornerInsets"
}
-->

# containerCornerInsets

Returns the corner insets of the container view. Use this value to
adjust the geometry of a view based on the overlapping corner insets of
the container view. Corner insets may include pieces of system UI as
well as the corner radii for windows and presentations.

```
var containerCornerInsets: RectangleCornerInsets { get }
```

## Discussion

```
GeometryReader { geometry in
    NavigationTitleView()
        .offset(x: geometry.containerCornerInsets.topLeading.width)
}
```

Container corner inset sizes may not be uniform. For example, on iPadOS
and macOS, when the window fills the entire screen without displaying
window controls, the inset sizes will always be zero. When that window
does display window controls, and the view overlaps the window control
area, the corner inset size for the top leading corner will be the size
of the overlapping area.

---

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)