Jelajahi Sumber

Set automaticallyMergesChangesFromParent to false as we are using Persistent History Tracking

polscm32 1 tahun lalu
induk
melakukan
1679ccb026
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Model/CoreDataStack.swift

+ 1 - 1
Model/CoreDataStack.swift

@@ -88,7 +88,7 @@ class CoreDataStack: ObservableObject {
         let taskContext = persistentContainer.newBackgroundContext()
         let taskContext = persistentContainer.newBackgroundContext()
 
 
         /// ensure that the background contexts stay in sync with the main context
         /// ensure that the background contexts stay in sync with the main context
-        taskContext.automaticallyMergesChangesFromParent = true
+        taskContext.automaticallyMergesChangesFromParent = false
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.undoManager = nil
         taskContext.undoManager = nil
         return taskContext
         return taskContext