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

Clear passcode to simplify controller re-use #29

Open
2 tasks done
adamrothman opened this issue May 27, 2018 · 0 comments
Open
2 tasks done

Clear passcode to simplify controller re-use #29

adamrothman opened this issue May 27, 2018 · 0 comments

Comments

@adamrothman
Copy link

  • I have read this issue template and provided all possible information.
  • I'm using CocoaPods and have run pod update before filing this issue.

Hardware / Software

Which version of the library were you using? 0.0.2
Which version of iOS are you running? 11.3 (simulator)
What model of iOS device were you testing on? iPad Pro 10.5 (simulator)
If using CocoaPods, which version of CocoaPods are you on? 1.5.3

Feature request

I would like to avoid creating a new instance of TOPasscodeViewController every time I want to present one. Instead, I'd like to re-use an instance that's created and owned by the presenting controller.

I can accomplish this now, but the second time I present the passcode TOPasscodeViewController, it still has its dots filled in from the previous entry.

It seems like there are two ways to solve this:

  1. Automatically clear the entered passcode when passcodeViewController(_:isCorrectCode:) returns a success.
  2. Expose an additional method on TOPasscodeViewController – something like clearPasscode().
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

No branches or pull requests

1 participant