<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EdgeInsets3D",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12EdgeInsets3DV"
  },
  "title" : "EdgeInsets3D"
}
-->

# EdgeInsets3D

The inset distances for the faces of a 3D volume.

```
@frozen struct EdgeInsets3D
```

## Topics

### Getting edge insets

[`var top: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/top)

The inset distance along the top face of a 3D volume.

[`var bottom: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/bottom)

The inset distance along the bottom face of a 3D volume.

[`var leading: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/leading)

The inset distance along the leading face of a 3D volume.

[`var trailing: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/trailing)

The inset distance along the top trailing of a 3D volume.

[`var front: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/front)

The inset distance along the top front of a 3D volume.

[`var back: CGFloat`](/documentation/SwiftUI/EdgeInsets3D/back)

The inset distance along the top back of a 3D volume.

### Creating an edge inset

[`init(horizontal: CGFloat, vertical: CGFloat, depth: CGFloat)`](/documentation/SwiftUI/EdgeInsets3D/init(horizontal:vertical:depth:))

Creates an `EdgeInsets3D` value with values provided for each axis.

[`init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat, front: CGFloat, back: CGFloat)`](/documentation/SwiftUI/EdgeInsets3D/init(top:leading:bottom:trailing:front:back:))

Creates an `EdgeInsets3D` value with values provided for each face.

## Relationships

### Conforms To

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

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

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

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

[`Animatable`](/documentation/SwiftUI/Animatable)

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

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

---

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)