This simple project will display an iOS style passcode screen. There are many passcode projects out there, but I wanted to write my own to:
- Learn Functional reactive programming
- Be maintainable peice of code, many other libraries are old and lots more lines of code
- To install, run
pod install
and open the app - Does not include Touch ID support
- Default passcode is 1234
The Passcode presentation has 3 scenarios:
- Validate passcode
- After 3 tries, the presentation will call back to
didFailAllPasscodeAttempts
- Set new passcode
- enter passcode twice
- Change existing passcode (Which amounts to Validate => Set new)
- validate existing passcode
- set new passcode
RxSwift: The reactive programming library: https://github.com/ReactiveX/RxSwift