H Stack
import SwiftUI
Struct ContentView: View {
var body: some View {
HStack {
Text("左")
Text("中央")
Text("右")
}
}
}
V Stack
import SwiftUI
Struct ContenView: View {
var body: some View{
VStack {
Text("上")
Text("中央")
Text("下")
}
}
}
Z Stack
import SwiftUI
Struct ContentView: View {
var body: some View {
ZStack {
Image("背景画像")
Text("前面のテキスト")
}
}
}