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

# UIStackView.Alignment.firstBaseline

A layout for horizontal stacks where the stack view aligns its arranged views based on their first baseline.

```
case firstBaseline
```

## Discussion

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

![A horizontal stack view with three text-based subviews. The stack view aligns the subviews according to their first baseline.](images/com.apple.uikit/media-2557467@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)