File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ import CloudKit
1111struct PersistenceController {
1212 static let shared = PersistenceController ( )
1313
14- let container : NSPersistentCloudKitContainer
14+ let container : NSPersistentContainer
1515
1616 init ( ) {
17- container = NSPersistentCloudKitContainer ( name: " InfiniLink " )
17+ container = NSPersistentContainer ( name: " InfiniLink " )
1818
1919 guard let description = container. persistentStoreDescriptions. first else {
2020 log ( " No persistent store descriptions " )
@@ -23,7 +23,8 @@ struct PersistenceController {
2323
2424 description. shouldMigrateStoreAutomatically = true
2525 description. shouldInferMappingModelAutomatically = true
26- description. cloudKitContainerOptions = NSPersistentCloudKitContainerOptions ( containerIdentifier: " iCloud.com.alexemry.Infini-iOS " )
26+ description. setOption ( true as NSNumber , forKey: NSPersistentHistoryTrackingKey)
27+ // description.cloudKitContainerOptions = NSPersistentCloudKitContainerOptions(containerIdentifier: "iCloud.com.alexemry.Infini-iOS")
2728
2829 container. loadPersistentStores { storeDescription, error in
2930 if let error = error as NSError ? {
You can’t perform that action at this time.
0 commit comments