Post

Replies

Boosts

Views

Activity

Comment on Swift Core Data - Change Location of Persistent Store
Thank you for the input. I corrected the problem by adding code to to my core data manager class init which loads the persistent store. See code below. let persistentStoreURL: URL = URL(fileURLWithPath: "/Users/Chris/Downloads/Persistent Store/Index Funds.sqlite", isDirectory: false) let description = NSPersistentStoreDescription(url: persistentStoreURL) persistentContainer.persistentStoreDescriptions = [description]
Apr ’23