Swift & SwiftUI enthusiast | Tech blogger 📧 Newsletter: https://t.co/AX9xEwys1k
Shorts
SwiftUI List row height animation is broken by design — and most fixes just avoid the problem. This deep-dive shows how to actually solve it: custom Layout, state machine decoupling, and animatable spacing — all native SwiftUI, no UIKit.
12,881 次观看
Using the id modifier on subviews throws a wrench into List's optimization. Instead of just rendering what's visible, it forces all subviews to load instantly. To avoid this, build data sources that align with the Identifiable protocol.