r/iOSProgramming • • Sep 01 '26

Discussion SwiftData kind of disrupts previously working animations

Hello, I haven't been able to actually have animations (upon object deletion, more specifically) work as they usually would if a variable was not wrapped with the Query macro (the macro used to fetch from SwiftData in SwiftUI). Has anyone experienced the same? If so, did you find a solution? I remember trying using the context (modelContext) itself but to no avail.

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Over_Land2208 Sep 01 '26

the row would just disappear even with a .transition modifier applied, for example.