4 ms·
Where do you see that it does cell reuse? It does not... Their docs only talk about lazy loading, not reuse or unloading, eg: https://developer.apple.com/docume
by wahnfrieden 2y ago
Where do you see that it does cell reuse? It does not... Their docs only talk about lazy loading, not reuse or unloading, eg: https://developer.apple.com/documentation/swiftui/creating-performant-scrollable-stacks https://developer.apple.com/documentation/swiftui/creating-p...
This is also why LazyVGrid/LazyHGrid are unusable as replacements for UICollectionView
Yes you can replace SwiftUI with UIKit + AppKit - replace the navigation, the text rendering, the text editing, the collection views, etc.
edit: Your link is all about how to use List
- kridsdale1 2y agoWell the good news is you can keep using UICollectionView or MyFancyReuseView anywhere in the stack or tree of SwiftUI.
- sandoze 2y agoI’m on a phone which means digging through Apple docs or WWDC-ascii isn’t fun. But for my recent Insta-like infinite feed on iOS this was very helpful: https://fatbobman.com/en/posts/tips-and-considerations-for-using-lazy-containers-in-swiftui/ https://fatbobman.com/en/posts/tips-and-considerations-for-u...
- wahnfrieden 2y agoYour link is all about how to use List Also... Funny that I'm getting downvoted for correctly pointing out that LazyVStack doesn't reuse or unload views. It's so obvious that they should, that no one can believe they don't.
- sandoze 2y agoThere are additional links and details about LazyVStack highlighted in the content. I thought the top level article focused on Lists would be more helpful for you.
- wahnfrieden 2y agoI followed those links and it agrees with my initial post that LazyVStack does not reuse or unload, and confirms that the only choice for large data sets is List (focused on iOS)