---
title: trailing
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/horizontalalignment/trailing
---

# trailing

A guide that marks the trailing edge of the view.

## Declaration

```swift
static let trailing: HorizontalAlignment
```

## Discussion

Discussion Use this guide to align the trailing edges of views. For a device that uses a left-to-right language, the trailing edge is on the right:

The following code generates the image above using a VStack: struct HorizontalAlignmentTrailing: View {     var body: some View {         VStack(alignment: .trailing, spacing: 0) {             Color.red.frame(width: 1)             Text("Trailing").font(.title).border(.gray)             Color.red.frame(width: 1)         }     } }

## See Also

### Getting guides

- [leading](swiftui/horizontalalignment/leading.md)
- [center](swiftui/horizontalalignment/center.md)
- [listRowSeparatorLeading](swiftui/horizontalalignment/listrowseparatorleading.md)
- [listRowSeparatorTrailing](swiftui/horizontalalignment/listrowseparatortrailing.md)
