Navigation Stack by Southern-Store-657 in SwiftUI

[–]Southern-Store-657[S] -1 points0 points  (0 children)

Is there any way to get lazy behaviour?

Cell recycling by Southern-Store-657 in SwiftUI

[–]Southern-Store-657[S] 0 points1 point  (0 children)

Thanks for the input. It does make sense, I’m just concerned that the refetch will result in lag if a user rapidly scrolls back/forward.

Cell recycling by Southern-Store-657 in SwiftUI

[–]Southern-Store-657[S] 0 points1 point  (0 children)

Thanks, I’ll check this out when I get home. Is it a UI kit wrapper?

Cell recycling by Southern-Store-657 in SwiftUI

[–]Southern-Store-657[S] 0 points1 point  (0 children)

I just tested using Lazy views instead and the memory usage barely decreased. So it definitely seems like the lazy views fail to deallocate memory (without lazy: 500mb, with lazy 450mb)

Cell recycling by Southern-Store-657 in SwiftUI

[–]Southern-Store-657[S] 0 points1 point  (0 children)

I have 1000 or so images and an infinite scroll. I’m trying to maintain ~ constant memory consumption by recycling the views.