SHARE
TWEET

Untitled

a guest Feb 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class AppDelegate: UIResponder, UIApplicationDelegate {
  2.  
  3.     var window: UIWindow?
  4.  
  5.     var persistentContainer: NSPersistentContainer!
  6.  
  7.     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  8.        
  9.         let container = NSPersistentContainer(name: "TransformableModel")
  10.         container.loadPersistentStores { (_, error) in
  11.             guard error == nil else { fatalError() }
  12.             self.persistentContainer = container
  13.         }
  14.        
  15.         return true
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top