Note: this project is currently under aggressive development, please do not use it in a production application.
This project provides a Two Factor like Pass Code entry widget. It provides a nice user experience where a user can type in a pass code like input (letters or numbers) and provides bindable validation.
Features:
- Configurable amount of cells
- Cursor jumps forward as user enters digits
- Cursor jumps backwards as user clears input
- Support for user arbitrarily navigating between cells
- Abstracted data model
- Built for SwiftUI
Planned Features:
- Restrict input to nominated character sets
- Configurable input boxes
- Group input boxes
Vendor in the component: If you wish to vendor the library into your project, simply include the following files from a desired release or master
:
PassCodeModel.swift
PassCodeField.swift
PassCodeCharField.swift
Swift Package Manager
Running the Demo
Contact the author of the library directly:
- Dev Mukherjee (@mdevraj)
For feature requests and bug reports please use Github issues.
PassCode Input is licensed under terms outlined by the MIT License.