---
title: "init(horizontal:vertical:depth:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/edgeinsets3d/init(horizontal:vertical:depth:)"
---

# init(horizontal:vertical:depth:)

Creates an EdgeInsets3D value with values provided for each axis.

## Declaration

```swift
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.

## See Also

### Creating an edge inset

- [init(top:leading:bottom:trailing:front:back:)](swiftui/edgeinsets3d/init(top:leading:bottom:trailing:front:back:).md)
