Home > AI > IOS > SwiftUI >

HStack

Example (Apple Official):

struct TestView: View {
    var body: some View {
        HStack( alignment: .top, spacing: 10 ) {
            ForEach( 1...5, id: \.self ) {
                Text("Item \($0)")
            }
        }
    }
}

Leave a Reply