Skip to content

Commit e0c2af5

Browse files
committed
Temporarily remove iCloud syncing
1 parent 0e96bfd commit e0c2af5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

InfiniLink/Utils/PersistenceController.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import CloudKit
1111
struct 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? {

0 commit comments

Comments
 (0)