SwiftUI: The difference between List and LazyVStack
It started with this Toot
I first got a reply from Chris from objc.io
Chris Eidhof (@email@example.com)
@firstname.lastname@example.org @IceCubesApp@mastodon.online have you considered moving to LazyVStack? Are you depending on…
My reply which start a whole other conversation about why I switched the main tilmeline in Ice Cubes from a
LazyVStack to a List
And then Tony Arnold from Reveal jumped in as he’s working on a new feature in SwiftUI for Reveal
The gist is that
LazyVStack is just lazy, but this is not even close to the
List (which is still backed by a UIKit
UICollectionView). Any of those reuse / cycle views are you need them.
LazyVStack just grow in size, forever. So the longer it is, the more you scroll, the slower it get!
Let me know if you like this format!