Elektrine lite

← Feed

@nicklockwood@mastodon.social

Post #1888467

2026-04-15 08:21 UTC

It's really elegant how SwiftUI has three versions of CollectionView, and each is broken in a different, infuriating way 😩 #swiftui

Replies (2)

  • I guess rather than vagueposting I could actually explain how they are broken since it's not documented anywhere: List - best all-round solution, but resizing items is janky and sometimes leads to random scroll offset VStack - horrible performance for more than a few items LazyVStack - smooth scrolling and resizing of items, but programmatic scrollTo() doesn't work reliably because items are lazy loaded

    Open ##3685283

  • @nSonic@troet.cafe 2026-04-15 11:04

    @nicklockwood@mastodon.social @SwiftUIisGreat@mastodon.social And I thought it’s a #dotNetMAUI problem only … they deprecated ListView in Favor to the CollectionView but there are still a lot of problems (layout, caching, reusing items, disappearing items, slowness, …) And whenever i think „should I rebuild everything from scratch natively on iOS and Android?“, i read something like your post and think „no. Same or different basic problems but at least i know my old ones“ 😖

    Open ##3685290