Skip to content

Instantly share code, notes, and snippets.

@stfalconaleks
Created November 22, 2017 12:17
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 stfalconaleks/a7213c2d587d9b2ff05080435e847395 to your computer and use it in GitHub Desktop.
Save stfalconaleks/a7213c2d587d9b2ff05080435e847395 to your computer and use it in GitHub Desktop.
class PersistentContainer: NSPersistentContainer{
override class func defaultDirectoryURL() -> URL{
return FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.sharingForTodayExtension")!
}
override init(name: String, managedObjectModel model: NSManagedObjectModel) {
super.init(name: name, managedObjectModel: model)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment