https://github.com/amir-ardalanuk/aaverifier
AAVerifier - OTP Code Input
https://github.com/amir-ardalanuk/aaverifier
code-entry delegate github ios library otp smscode swift swift3 swift4 textfield-validation validation validation-library verify-input
Last synced: 3 months ago
JSON representation
AAVerifier - OTP Code Input
- Host: GitHub
- URL: https://github.com/amir-ardalanuk/aaverifier
- Owner: amir-ardalanuk
- License: mit
- Created: 2018-09-22T08:15:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T14:09:07.000Z (about 7 years ago)
- Last Synced: 2025-06-24T13:10:30.454Z (10 months ago)
- Topics: code-entry, delegate, github, ios, library, otp, smscode, swift, swift3, swift4, textfield-validation, validation, validation-library, verify-input
- Language: Swift
- Homepage:
- Size: 6.94 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AAVerifier
add Simple Verify Code in your project !
### Requirements
- iOS 10.0+
- Xcode 8.1+
- Swift 3.0+
## Install
you can use in cocoapods
```swift
pod 'AAVerifier'
```
## init
such as gif(very simple) add UIStackView then -> Custom Class -> AAVerifier

#### next :
set delegate :
```swift
@IBOutlet weak var verifier : AAVerifier! {
didSet{
verifier.codeDelegate = self
}
}
```
## get Code :
Impliment ``AAVriferDelegate`` protocol for get code :
```swift
extension ViewController : AAVriferDelegate {
func codeChanged(code: String) {
print(code)
}
}
```
## set Code (1.2.2) :
you can set code from sms with new iOS feature
```swift
self.verifier.setCode(string: "555665")
```
## options

## Done !

#### if you need more option or i have bug please let me know ! thanks
## License
AAVerifier is available under the MIT license. See the LICENSE file for more information.