The second HStack
's content cannot be correctly aligned. Is this a SwiftUI's bug?
Text("Alignment with VStack")
HStack(alignment: .firstTextBaseline) {
Text("·")
VStack {
Text("LARGE TITLE")
Text("LARGE TITLE")
}
.font(.largeTitle)
}
Divider()
Text("Alignment with Lazy VStack")
HStack(alignment: .firstTextBaseline) {
Text("·")
LazyVStack {
Text("LARGE TITLE")
Text("LARGE TITLE")
}
.font(.largeTitle)
}