We currently pass around NSManagedObjectContext objects in many places – namely View Controllers and services.
In these cases, we often make changes directly to the mainContext, which is incompatible with how NSPersistentContainer is designed to work.
We'll replace instances of a bare context being passed around with reads from the viewContext and writes using the new Core Data write API.
We currently pass around
NSManagedObjectContextobjects in many places – namely View Controllers and services.In these cases, we often make changes directly to the
mainContext, which is incompatible with howNSPersistentContaineris designed to work.We'll replace instances of a bare context being passed around with reads from the
viewContextand writes using the new Core Data write API.