Daily iOS
SwiftUI

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?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

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.

Share a question