SwiftData updates across Windows/ImmersiveSpace
While trying to implement a feature in my application I have been banging my head on my desk trying to figure out this issue. Essentially, I have a view in a window that displays model data. I close the window, and have behavior that updates an instance of the model in the ImmersiveSpace. Both the window and Space utilize .modelContainer(for: User.self)
. Using Core Data Lab, I can observe the changes happening in the database and being persisted. However, when I go to the view in the window where I can view the list of model instances, I do not see the update.
Have any of you also come across this issue?