forked from lucxjo/leganto-apple
Added Esperanto translations
Added beginnings of feed parsing,
may need to switch parser.
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
058cf52926
commit
9345b91573
13 changed files with 213 additions and 16 deletions
|
|
@ -52,6 +52,7 @@ class DataController: ObservableObject {
|
|||
|
||||
init(inMemory: Bool = false) {
|
||||
container = NSPersistentCloudKitContainer(name: "Leganto")
|
||||
|
||||
if inMemory {
|
||||
container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null")
|
||||
}
|
||||
|
|
@ -72,7 +73,17 @@ class DataController: ObservableObject {
|
|||
fatalError("Unresolved error \(error), \(error.userInfo)")
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
/*
|
||||
#if DEBUG
|
||||
do {
|
||||
try container.initializeCloudKitSchema()
|
||||
} catch {
|
||||
let err = error as NSError
|
||||
fatalError("Unresolved error \(err), \(err.userInfo)")
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
container.viewContext.automaticallyMergesChangesFromParent = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue