I am using coreData and loading my model using the following:
@FetchRequest(sortDescriptors: [NSSortDescriptor(key: "dateAdded_", ascending: false)], animation: .default)
private var items: FetchedResults<Item>
The problem is when I update the one-many relation of an item and saveContext on main thread, the view is not refreshed. I'm assuming the changes to the relations are not observed.
item.addToItemRelations(itemRelation)
try? context.save()
I don't think I will be able to make this work consistently using toggle's and other hacks. Just wondering if there is anyway to force the @FetchRequest to fetch the entire result again?