티스토리 뷰

📱 SwiftUI

LazyHStack

James Wetzel 2022. 6. 10. 10:59
728x90
반응형

A view that arranges its children in a line that grows horizontally, creating items only as needed.

ScrollView(.horizontal) {
    LazyHStack(alignment: .top, spacing: 10) {
        ForEach(1...100, id: \.self) {
            Text("Column \($0)")
        }
    }
}
728x90
반응형