velikanov / SwiftPasscodeLock

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

dismissPasscodeLock(animated: Bool = true) called many times? #49

Open klwoon opened 7 years ago

klwoon commented 7 years ago

Thanks for the great effort maintaining this library!

Please refer to the screenshot below captured after repeatedly putting the Demo app into background, then to foreground to unlock, and background again: screen shot 2017-05-26 at 6 33 37 pm

It appears that the method dismissPasscodeLock(animated: Bool = true) will be called many times, is that the expected behaviour? I was testing why the dismiss animation only works for the first time unlock but not the subsequent unlock, then found this.

Please advise.

ziogaschr commented 7 years ago

I don't think this is expected indeed. Nice catch. It will be nice if you can create a PR. Otherwise, I will try to have a look soon (not in the next 10 days)