I’m trying to treat an entire LazyVGrid
as pages, and animate when switching forward or back. A simple slide animation would be fine.
I currently have something along the lines of
LazyVGrid(
columns: [array of column info],
alignment: .center,
spacing: 4
) {
ForEach(cells) { cell in
CellView(cell: cell)
}
}
I have pages of cells
that get set on the state when you hit the fwd
or back
buttons, and they are immediately re-rendered. However, it would be cool to set a forward/back slide when the buttons are hit. I haven’t been able to figure this out easily with transition
and animation
.
If there’s an entirely different library doing this, I’d be open to trying it.
Thanks so much!