PHOTPView
Fully Customized pin code(OTP) verification view without storyboard.
Getting Started
Features
- Flawless focus change to the consecutive OTP box when the text is entered/deleted.
- When the user taps on the Pinview, the first empty box available is focused automatically (when the cursor is hidden).
- Customisations are available for pin box sizes, font color, border color, inputType etc.
Installation
download project for quick demo.
Manually :
- Copy and drag the PHOTPView/ folder to your project.
How to Use?
- create a PHOTPView object
- create a PinConfig object
responsible for all kind of customization
Example:
- initialize view by assigning cofig object
- assign delegate
- Finally, Add to your view in which you want to configure OTPview
NOTE: Do not forget to initialize UI by calling below method.
Prerequisites:
- xcode 9
- swift 5