Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AppDelegate: UIResponder, UIApplicationDelegate {
- var window: UIWindow?
- var persistentContainer: NSPersistentContainer!
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- let container = NSPersistentContainer(name: "TransformableModel")
- container.loadPersistentStores { (_, error) in
- guard error == nil else { fatalError() }
- self.persistentContainer = container
- }
- return true
- }
- }
Add Comment
Please, Sign In to add comment