bottom
A guide that marks the bottom edge of the view.
Declaration
static let bottom: VerticalAlignmentMentioned in
Discussion
Use this guide to align the bottom edges of views:
[Image]
The following code generates the image above using an HStack:
struct VerticalAlignmentBottom: View {
var body: some View {
HStack(alignment: .bottom, spacing: 0) {
Color.red.frame(height: 1)
Text("Bottom").font(.title).border(.gray)
Color.red.frame(height: 1)
}
}
}