An open API service indexing awesome lists of open source software.

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

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
![](https://github.com/amir-ardalanuk/AAVerifier/blob/master/setup_AAVerifier.gif)

#### 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

![](https://github.com/amir-ardalanuk/AAVerifier/blob/master/Screen%20Shot%202018-09-22%20at%2012.18.27%20PM.png)

## Done !
![](https://github.com/amir-ardalanuk/AAVerifier/blob/master/sample_AAVerifier.gif)

#### 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.