diff --git a/pass/AppDelegate.swift b/pass/AppDelegate.swift index 23da43a..586e635 100644 --- a/pass/AppDelegate.swift +++ b/pass/AppDelegate.swift @@ -87,11 +87,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - passcodeLockPresenter.present(windowLevel: UIApplication.shared.windows.last?.windowLevel) + } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + passcodeLockPresenter = PasscodeLockPresenter(mainWindow: self.window, configuration: PasscodeLockConfiguration.shared) + passcodeLockPresenter.present(windowLevel: UIApplication.shared.windows.last?.windowLevel) } func applicationDidBecomeActive(_ application: UIApplication) {