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.
46,098 просмотров
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.
13,651 просмотров
SwiftUI List 的行高动画,从设计上就存在缺陷——而大多数"解决方案"不过是在绕开问题。 这篇文章给出真正的解法:自定义 Layout、状态机解耦、可动画化的 spacing——全程原生 SwiftUI,没有 UIKit。