diff --git a/Cartfile b/Cartfile index 46a4518..42a324b 100644 --- a/Cartfile +++ b/Cartfile @@ -1,7 +1,8 @@ github "SVProgressHUD/SVProgressHUD" github "radex/SwiftyUserDefaults" github "libgit2/objective-git" -github "zahlz/SwiftPasscodeLock" "master" +# github "zahlz/SwiftPasscodeLock" "master" +github "yishilin14/SwiftPasscodeLock" "app-extension-support" github "bitserf/FavIcon" github "kishikawakatsumi/KeychainAccess" github "mattrubin/OneTimePassword" diff --git a/pass/AppDelegate.swift b/pass/AppDelegate.swift index 0bc7b8a..1952416 100644 --- a/pass/AppDelegate.swift +++ b/pass/AppDelegate.swift @@ -28,7 +28,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. SVProgressHUD.setMinimumSize(CGSize(width: 150, height: 100)) - passcodeLockPresenter.present() + passcodeLockPresenter.present(windowLevel: UIApplication.shared.windows.last?.windowLevel) if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem { if shortcutItem.type == Globals.bundleIdentifier + ".search" { self.perform(#selector(postSearchNotification), with: nil, afterDelay: 0.4) @@ -80,7 +80,7 @@ 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() + passcodeLockPresenter.present(windowLevel: UIApplication.shared.windows.last?.windowLevel) } func applicationWillEnterForeground(_ application: UIApplication) {