yankodimitrov / SwiftPasscodeLock

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

Cancel in all passcode states. #54

Closed raugustinas closed 8 years ago

raugustinas commented 8 years ago

By default .SetPasscode state has the cancel button. But in .EnterPasscode state cancel button is missing. Is there a simple way to enable cancel button in .EnterPasscode state?

Awesome lib! Thanks! @ziogaschr , @szappanyos , @yankodimitrov , @maximbilan , @gblotter

raugustinas commented 8 years ago

I've created custom PasscodeLockStateType with allowed cancelation.

kiokumicu commented 7 years ago

Can you give an example?

raugustinas commented 7 years ago

Just set isCancelableAction to true in EnterPasscodeState init.

kiokumicu commented 7 years ago

You copy EnterPasscodeState.swift in your own directory?

raugustinas commented 7 years ago

Yes, I've forked the whole project and edited it.

kiokumicu commented 7 years ago

ok, thx