You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i want to store the CoreData Container with a custom URL to share it with a widget extension.
Here is my code:
letaccessToken=SingleCoreDataStore<String>(databaseName:"accessToken"){ objectModel inletcontainer=NSPersistentContainer(name:"accessToken")letstoreURL=FileManager.default.containerURL(forSecurityApplicationGroupIdentifier:"group.com.justtreme.teamplaner")!.appendingPathComponent("accessToken.sqlite")letdescription=NSPersistentStoreDescription(url: storeURL)
container.persistentStoreDescriptions =[description]
container.loadPersistentStores{(_, error)in
if let error = error {print(error.localizedDescription)}}return container
}
I can store the data and retrieve it from the iOS app but it is not available on the widget extension.
This code is in a handler file wich is available for both targets.
Can someone help me with that?
Ferris
The text was updated successfully, but these errors were encountered:
Hi, i want to store the CoreData Container with a custom URL to share it with a widget extension.
Here is my code:
I can store the data and retrieve it from the iOS app but it is not available on the widget extension.
This code is in a handler file wich is available for both targets.
Can someone help me with that?
Ferris
The text was updated successfully, but these errors were encountered: