Skip to content

Instantly share code, notes, and snippets.

@adagio
Created April 19, 2017 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adagio/82a4b53aa626906598db353905844114 to your computer and use it in GitHub Desktop.
Save adagio/82a4b53aa626906598db353905844114 to your computer and use it in GitHub Desktop.
CoreData, migrations to App Group Container
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