Skip to content

Instantly share code, notes, and snippets.

Dmitry Zakharov comfly

Block or report user

Report or block comfly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ContextProvider.swift
class ContextProvider {
struct _$ {
static let model = NSManagedObjectModel.mergedModelFromBundles(nil)
static let coordinator: NSPersistentStoreCoordinator = {
let result = NSPersistentStoreCoordinator(managedObjectModel: model)
var error: NSError?
let store = result.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: URL, options: nil, error: &error)
if !store {
NSLog("Error creating store coordinator: %@", error!)
You can’t perform that action at this time.