velikanov / SwiftPasscodeLock

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

PasscodeLockPresenter not showing passcode screen #52

Open moesalih opened 6 years ago

moesalih commented 6 years ago

I'm calling:

let presenter = PasscodeLockPresenter(mainWindow: UIApplication.shared.keyWindow, configuration: configuration)
presenter.presentPasscodeLock()

from didFinishLaunchingWithOptions and applicationDidEnterBackground but it doesn't seem to work properly.

On launch, only the Touch ID alert shows up, and the passcode screen doesn't. On going to background, the passcode screen shows up in the task switcher, but when selecting the app, the screen goes away, and the Touch ID alert is not shown at all.

Seems like it's something window related. This is on iOS 11.1