<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIStackView/Alignment-swift.enum/trailing",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIStackViewAlignment@UIStackViewAlignmentTrailing"
  },
  "title" : "UIStackView.Alignment.trailing"
}
-->

# UIStackView.Alignment.trailing

A layout for vertical stacks where the stack view aligns the trailing edge of its arranged views along its trailing edge.

```
case trailing
```

## Discussion

This value is equivalent to the [`bottom`](/documentation/UIKit/UIStackView/Alignment-swift.enum/bottom) alignment for horizontal stacks.

The following image shows an example of a vertical stack view that uses the [`UIStackView.Alignment.trailing`](/documentation/UIKit/UIStackView/Alignment-swift.enum/trailing) alignment.

![A vertical stack view with four arranged subviews. The stack view aligns the subviews to its trailing edge.](images/com.apple.uikit/media-2557472@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)