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

# init(horizontal:vertical:depth:)

Creates a custom alignment value with the specified horizontal, vertical and depth alignment guides.

## Declaration

```swift
init(horizontal: HorizontalAlignment, vertical: VerticalAlignment, depth: DepthAlignment)
```

## Parameters

- `horizontal`: The alignment on the horizontal axis.
- `vertical`: The alignment on the vertical axis.
- `depth`: The alignment on the depth axis.
