Large list performance
A SwiftUI feed showing thousands of items stutters while scrolling. Based on the internal differences between List and ScrollView + LazyVStack, which do you choose?
A SwiftUI feed showing thousands of items stutters while scrolling. Based on the internal differences between List and ScrollView + LazyVStack, which do you choose?
List is built on UICollectionView and gives you cell reuse, prefetching, and fixed-height optimizations; LazyVStack only creates lazily, never reuses, so view count and height calculations pile up. The default choice is List.
SwiftUIShort answerBasics
You got a report that a SwiftUI List stutters while scrolling, and that row toggles and…
#list #lazyvstack #performance #identifiable
SwiftUIMultiple choiceAdvanced
In this SwiftUI to-do list, inserting an item at the front makes every row flicker…
#list #identifiable
UIKitShort answerAdvanced
You get a report that scrolling stutters on a feed screen that mixes images and text…
#performance #scroll
SwiftUIShort answerAdvanced
In SwiftUI, what does the iOS 17 @Observable macro give you over the older…
#performance