<!--
{
  "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/leading",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIStackViewAlignment@UIStackViewAlignmentLeading"
  },
  "title" : "UIStackView.Alignment.leading"
}
-->

# UIStackView.Alignment.leading

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

```
case leading
```

## Discussion

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

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

![A vertical stack view with four arranged subviews. The stack view aligns the subviews to its leading edge.](images/com.apple.uikit/media-2557458@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)