Grid icon indicating copy to clipboard operation
Grid copied to clipboard

Performance issue when scroll has 1000 items and more

Open davut opened this issue 3 years ago • 3 comments

Here is my code:

Grid(store.state.categories, id: \.id, tracks: 2) { category in
      SectionView( text: category.name)
}.gridContentMode(.scroll)

When I do it with List there is no issue, no lags. Would be happy if you can let me know if there is something that I missed.

Thanks

davut avatar Jan 27 '21 22:01 davut

Grid is based on ZStack view. Right now there is no ability to calculate layout for items by the order they appear. Items are created all at once.

denis-obukhov avatar Jan 31 '21 13:01 denis-obukhov

Yeah I was really excited to find and start using this library, but with this issue the library is unusable in my app.

Majekdor avatar Jun 20 '23 20:06 Majekdor