Created
April 19, 2017 03:04
-
-
Save adagio/82a4b53aa626906598db353905844114 to your computer and use it in GitHub Desktop.
CoreData, migrations to App Group Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator = { | |
// .. | |
let containerURL = fileManager.containerURLForSecurityApplicationGroupIdentifier("group.com.myapp.MyApp") | |
let groupURL = containerURL!.URLByAppendingPathComponent(databaseName) | |
// .. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment