Skip to content

amir-ardalanuk/AAVerifier

Repository files navigation

AAVerifier

add Simple Verify Code in your project !

Requirements

  • iOS 10.0+
  • Xcode 8.1+
  • Swift 3.0+

Install

you can use in cocoapods

pod 'AAVerifier'

init

such as gif(very simple) add UIStackView then -> Custom Class -> AAVerifier

next :

set delegate :

    @IBOutlet weak var  verifier : AAVerifier! {
        didSet{
            verifier.codeDelegate = self
        }
    }

get Code :

Impliment AAVriferDelegate protocol for get code :

extension ViewController : AAVriferDelegate {
    func codeChanged(code: String) {
        print(code)
    }
}

set Code (1.2.2) :

you can set code from sms with new iOS feature

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.