Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "allowCancel" to TOPasscodeViewController #30

Merged
merged 1 commit into from
Jan 28, 2019
Merged

Add "allowCancel" to TOPasscodeViewController #30

merged 1 commit into from
Jan 28, 2019

Conversation

faec
Copy link

@faec faec commented Jun 7, 2018

Adds a new "allowCancel" property on TOPasscodeViewController that turns off
the default cancel button when set to NO, for use when the user can't proceed
in the app at all without entering a passcode.

Adds a new "allowCancel" property on TOPasscodeViewController that turns off
the default cancel button when set to NO, for use when the user can't proceed
in the app at all without entering a passcode.
@faec
Copy link
Author

faec commented Jun 7, 2018

This is related to #3 but is a better solution for me because removing / replacing the cancel button outright makes it impossible for the user to backspace (since they're the same button). This code still shows the "Delete" case even when allowCancel is set to NO, it just prevents the display / trigger of the "Cancel" case.

@TimOliver
Copy link
Owner

Sorry for the delay! Thanks for the PR!

@TimOliver TimOliver merged commit 77422c0 into TimOliver:master Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants