yankodimitrov / SwiftPasscodeLock

An iOS passcode lock with TouchID authentication written in Swift.
MIT License
680 stars 264 forks source link

PasscodeLock App Delegate preventing SVProgressHUD from showing #72

Open kurry421 opened 7 years ago

kurry421 commented 7 years ago

Hi, great framework, its the only one that was able to work nicely. However, I am facing an issue with the code found in the app delegate, its preventing my SVProgressHUD from displaying anywhere on the app. Any ideas on why this is so? I used the same code from the example project in the app delegate:

import PasscodeLock

//PassCode Lock Code
    lazy var passcodeLockPresenter: PasscodeLockPresenter = {

        let configuration = PasscodeLockConfiguration()
        let presenter = PasscodeLockPresenter(mainWindow: self.window, configuration: configuration)

        return presenter
    }()

    func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {

        passcodeLockPresenter.present()

        return true
    }

 func applicationDidEnterBackground(_ application: UIApplication) {

        passcodeLockPresenter.present()
    }
manhcuong27 commented 7 years ago

Hello there, did you manage to fix this problem ? My passcode view hide the alert asking for location service too :(