📱 SwiftUI
VStack
James Wetzel
2022. 6. 10. 10:52
728x90
반응형
A view that arranges its children in a vertical line.
var body: some View {
VStack(
alignment: .leading,
spacing: 10
) {
ForEach(
1...10,
id: \.self
) {
Text("Item \($0)")
}
}
}
728x90
반응형