SwiftUI
ForEach identifiers
In this SwiftUI to-do list, inserting an item at the front makes every row flicker instead of animating the insertion, and each row's toggle state shifts down by one. What's the cause?
ForEach(items.indices, id: \.self) { i in
TodoRow(item: items[i])
}Pick one