An iOS passcode lock library for inputting passcode and one time passwords with customisation properties
MIT License
A Protocol-Oreinted Passcode component provides you with the flexibility of easy integration in your application and customization.
It allows both alphanumerics and emoji entry as passcode.
pod 'SimplePasscodeView'
pod update
pod install
First, import SimplePasscodeView and then declare passcodeView as a IBOutlet property:
import SimplePasscodeView
class ViewController: UIViewController {
@IBOutlet weak var passcode: SimplePasscodeView!
override func viewDidLoad() {
super.viewDidLoad()
passcodeView.delegate = self
}
}
extension ViewController: SimplePasscodeDelegate {
func didFinishEntering(_ passcode: String) {
//Do whatever you want
}
}
Drag and drop a UIView
in your xib
or storyboard
and assign the custom class to SimplePasscodeView
. Follow the steps below:
Other customizable properties available.
Star the repo if you would like to follow future updates
Please feel free to fork the repo and raise a pull request :)
For any queries drop an email to '[email protected]'
You can hire me if you need help with any mobile related work.
Available as open source under the terms of the MIT License.