---
title: alignment
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/vstacklayout/alignment
---

# alignment

The horizontal alignment of subviews.

## Declaration

```swift
var alignment: HorizontalAlignment
```

## See Also

### Getting the stack’s properties

- [spacing](swiftui/vstacklayout/spacing.md)
