<!--
{
  "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/RectangleCornerInsets",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21RectangleCornerInsetsV"
  },
  "title" : "RectangleCornerInsets"
}
-->

# RectangleCornerInsets

The inset sizes for the corners of a rectangle.

```
@frozen struct RectangleCornerInsets
```

## Topics

### Initializers

[`init()`](/documentation/SwiftUI/RectangleCornerInsets/init())

[`init(topLeading: CGSize, topTrailing: CGSize, bottomLeading: CGSize, bottomTrailing: CGSize)`](/documentation/SwiftUI/RectangleCornerInsets/init(topLeading:topTrailing:bottomLeading:bottomTrailing:))

### Instance Properties

[`var bottomLeading: CGSize`](/documentation/SwiftUI/RectangleCornerInsets/bottomLeading)

The size of the bottom-leading corner inset.

[`var bottomTrailing: CGSize`](/documentation/SwiftUI/RectangleCornerInsets/bottomTrailing)

The size of the bottom-trailing corner inset.

[`var topLeading: CGSize`](/documentation/SwiftUI/RectangleCornerInsets/topLeading)

The size of the top-leading corner inset.

[`var topTrailing: CGSize`](/documentation/SwiftUI/RectangleCornerInsets/topTrailing)

The size of the top-trailing corner inset.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)