Our team would like the option to be able to cancel out of the .EnterPasscode state.
I thought of a couple different ways to do this:
Set the default value for isCancellableAction on EnterPasswordState to true
Make isCancellableAction on PasscodeLockStateType settable
Add an associated value to LockState.EnterPasscode to allow for that state with or without a cancellable action.
While all options had their pros and cons, I felt that the most flexible way to do this was option (3). Keep in mind that this breaks backwards compatibility, so it may be a good idea to wait for the next major release to add this in, but of course, it's up to the owners of this repo.
Our team would like the option to be able to cancel out of the
.EnterPasscode
state.I thought of a couple different ways to do this:
isCancellableAction
onEnterPasswordState
totrue
isCancellableAction
onPasscodeLockStateType
settableLockState.EnterPasscode
to allow for that state with or without a cancellable action.While all options had their pros and cons, I felt that the most flexible way to do this was option (3). Keep in mind that this breaks backwards compatibility, so it may be a good idea to wait for the next major release to add this in, but of course, it's up to the owners of this repo.