Post

Replies

Boosts

Views

Activity

CoreData, @FetchRequest, @ObservedObject and View Updating
I am having an issue in all my apps in which the list view is not updating when the detail view data is changed. All of these views follow the same basic format, with environment variables injected as instructed. The basic form is: ListView with @FetchRequest returning “items” inside a NavigationView. DetailView with @ObservedObject “item” DetailView2 with @ObservedObject. All the views have the same moc environment variable, but more often than not, the ListView is not updating to reflect changes from the detail view, such as adding a photo or changing the title. How can I make this work more effectively? Thanks.
2
0
723
Jun ’21