The Silent State Destruction Bug in SwiftData & SwiftUI (And the Model id Overriding Workaround)
If you are using SwiftData with SwiftUI, you likely rely on the default identity behavior provided by @Model and ForEach. You create a new instance, insert it into your ModelContext, render it in a list, and let SwiftUI handle the rest. However, if your Read more