add Simple Verify Code in your project !
- iOS 10.0+
- Xcode 8.1+
- Swift 3.0+
you can use in cocoapods
pod 'AAVerifier'
such as gif(very simple) add UIStackView then -> Custom Class -> AAVerifier
set delegate :
@IBOutlet weak var verifier : AAVerifier! {
didSet{
verifier.codeDelegate = self
}
}
Impliment AAVriferDelegate
protocol for get code :
extension ViewController : AAVriferDelegate {
func codeChanged(code: String) {
print(code)
}
}
you can set code from sms with new iOS feature
self.verifier.setCode(string: "555665")
AAVerifier is available under the MIT license. See the LICENSE file for more information.