Q-Mobile / QGrid

🎛 QGrid: The missing SwiftUI collection view.
MIT License
1.64k stars 104 forks source link

Not Lazy? #31

Closed jeremyquinn closed 4 years ago

jeremyquinn commented 4 years ago

Testing this in the simulator and every cell is generated on launch, not as you scroll (like SwiftUI List).

Or have I misunderstood something?

saket commented 4 years ago

I have the same question. I expected QGrid to lazy load the cells, as indicated in the readme:

It uses the same approach as SwiftUI's List view, by computing its cells on demand from an underlying collection of identified data.

karolkulesza commented 4 years ago

You're right, I just updated readme / code comments. QGrid is using ForEach under the hood, which does not seem to support lazy loading out of the box, so this is a good candidate for QGrid's next release feature.