32.8 Using the LazyHGrid View
Horizontal grids work in much the same way as vertically oriented grids with the exception that the configuration is based on rows instead of columns, and that the fixed, minimum and maximum values relate to row height instead of column width. Also, when scrolling is required the grid should be embedded in a horizontal ScrollView instance. The following declaration, for example, places a LazyHGrid within a horizontal ScrollView using adaptive sizing on all rows:
struct ContentView: View {
private var colors: [Color] = [.blue, .yellow, .green]
private var gridItems = [GridItem(.adaptive(minimum: 50))]
var body: some View {
ScrollView(.horizontal) {
...