Post

Replies

Boosts

Views

Activity

LazyVGrid, List, LazyStacks are not realising cells from memory?
I'm playing around with the new photo picker in SwiftUI 2 and I made a simple app to show the imported images in a LazyVGrid but when scrolling down, if I imported around 150 images the app finish all the memory and it crashes (Terminated due to memory issue). I tried the same with a LazyVStack and List but they have the same problem, I was expecting lazy items to release all the cells that goes off screen from the memory but it doesn't look like it's working. Is this a bug or am I doing something wrong? Here's my code: PhotoPickerView - https://developer.apple.com/forums/content/attachment/1464aa89-c2b0-4df2-808e-c0feb0536fe3 ContentView - https://developer.apple.com/forums/content/attachment/e2b040f7-f2dc-4eec-8c45-165b770301bd
1
0
1.6k
Jul ’21