How to make a Horizontal List in SwiftUI?
Starting from iOS 14 beta1
& XCode 12 beta1
you will be able to wrap LazyHStack
in a ScrollView
to create a horizontal lazy list of items, i.e., each item will only be loaded on demand:
ScrollView(.horizontal) { LazyHStack { ForEach(0...50, id: \.self) { index in Text(String(index)) .onAppear { print(index) } } } }