Switch to passcode lock fork that supports app extension

This commit is contained in:
Yishi Lin 2017-06-14 14:04:44 +08:00
parent 8e5a824cca
commit 639cd123cb
2 changed files with 4 additions and 3 deletions

View file

@ -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) {