---
title: DepthAlignment
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/depthalignment
---

# DepthAlignment

An alignment position along the depth axis.

## Declaration

```swift
@frozen struct DepthAlignment
```

## Topics

### Getting guides

- [back](swiftui/depthalignment/back.md)
- [center](swiftui/depthalignment/center.md)
- [front](swiftui/depthalignment/front.md)

### Initializers

- [init(_:)](swiftui/depthalignment/init(_:).md)

### Instance Methods

- [combineExplicit(_:)](swiftui/depthalignment/combineexplicit(_:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Aligning views

- [Aligning views within a stack](swiftui/aligning-views-within-a-stack.md)
- [Aligning views across stacks](swiftui/aligning-views-across-stacks.md)
- [alignmentGuide(_:computeValue:)](swiftui/view/alignmentguide(_:computevalue:).md)
- [Alignment](swiftui/alignment.md)
- [HorizontalAlignment](swiftui/horizontalalignment.md)
- [VerticalAlignment](swiftui/verticalalignment.md)
- [AlignmentID](swiftui/alignmentid.md)
- [ViewDimensions](swiftui/viewdimensions.md)
- [ViewDimensions3D](swiftui/viewdimensions3d.md)
- [SpatialContainer](swiftui/spatialcontainer.md)
