Hey,
I am implementing a "Select All" functionality and experiencing a crash because of running out of memory when having a lot of cells.
Calling .selectItem(at:animated:scrollPosition:) on 10k cells need 1.5GB and 20k needs 7GB (crashes on a real device). After selection is completed, memory goes down to normal levels.
This broken both on iOS 18.5 and 26.5.
Minimal example:
https://github.com/martonfarago/collectionViewMemoryTest
Is this a know issue? Is there another, maybe more efficient way of selecting all cells?
M
Topic:
UI Frameworks
SubTopic:
UIKit
3
0
193