<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EdgeInsets3D/init(horizontal:vertical:depth:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12EdgeInsets3DV10horizontal8vertical5depthAC14CoreFoundation7CGFloatV_A2Itcfc"
  },
  "title" : "init(horizontal:vertical:depth:)"
}
-->

# init(horizontal:vertical:depth:)

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

```
@export(implementation) init(horizontal: CGFloat = 0, vertical: CGFloat = 0, depth: CGFloat = 0)
```

## Parameters

`horizontal`

The insets to apply along the horizontal axis.

`vertical`

The insets to apply along the vertical axis.

`depth`

The insets to apply along the depth axis.

---

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)