I have a ZStack with top leading alignment. The first child put into it aligns as expected (top leading) but the second child aligns to center. Is this a bug or am I missing something here.
ZStack {
HStack {
Text("stack 1")
}
.frame(width: 150, height: 400, alignment: .topLeading)
.background(Color.red)
HStack {
Text("stack 2")
}
.frame(width: 100, height: 200, alignment: .topLeading)
.background(Color.blue)
}
.frame(width: 200, height: 500, alignment: .topLeading)
.background(Color.yellow)