■Stack
・HStack
横方向に並べて表示
・VStack
縦方向に並べて表示
・ZStack
重ねて表示
■コード
ZStack{
VStack{
Text("VStack縦並び***************")
HStack{
Text("HStack")
Spacer()
Text("横並び")
}
.background(Color.yellow)
}
.background(Color.blue)
HStack{
Text("HStack重ねて配置")
}.background(Color.green)
}
■プレビュー