Guest User

Untitled

a guest
Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment