---
title: lastTextBaseline
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/verticalalignment/lasttextbaseline
---

# lastTextBaseline

A guide that marks the bottom-most text baseline in a view.

## Declaration

```swift
static let lastTextBaseline: VerticalAlignment
```

## Discussion

Discussion Use this guide to align with the baseline of the bottom-most text in a view. The guide aligns with the bottom of a view that contains no text.

The following code generates the image above using an HStack: struct VerticalAlignmentLastTextBaseline: View {     var body: some View {         HStack(alignment: .lastTextBaseline, spacing: 0) {             Color.red.frame(height: 1)             Text("Last Text Baseline").font(.title).border(.gray)             Color.red.frame(height: 1)         }     } }

## See Also

### Getting guides

- [top](swiftui/verticalalignment/top.md)
- [center](swiftui/verticalalignment/center.md)
- [bottom](swiftui/verticalalignment/bottom.md)
- [firstTextBaseline](swiftui/verticalalignment/firsttextbaseline.md)
