How to use multiple grid at the same screen
phuongphally opened this issue · comments
Phuong Phally (ភួង ផល្លី) commented
Group {
WaterfallGrid(viewModel.categories) { category in
CategoryItem(category: category)
}
.gridStyle(columns: 3)
WaterfallGrid(viewModel.products) { product in
ProductCell(product: product)
}
.gridStyle(columns: 2)
}
When I use 2 difference grid in same page , Layout will have two difference scroll.
What I need is only one scroll per screen.
thanks
Paolo Leonardi commented
Hi yes, you are creating two different grids and each of them has its own scroll view.
You probably want a grid that supports sections but I'm afraid WatefallGrid
doesn't have this feature yet.
Phuong Phally (ភួង ផល្លី) commented
@paololeonardi Yes, Maybe doesn't support.