wisemen-digital / PhoneVerificationController

A nicer UI for FireBase phone authentication.
MIT License
31 stars 13 forks source link

Cancle Delegate not called #2

Open AhmadOdeh93 opened 6 years ago

AhmadOdeh93 commented 6 years ago

Hello ,

I want ask about cancel button I can't make any thing when it's call

extension NewMainTabBarVC: PhoneVerificationDelegate {
    func cancelled(controller: PhoneVerificationController) {
        print("Cancelled verification")
        controller.dismiss(animated: true)
    }
    func verified(phoneNumber: String, controller: PhoneVerificationController) {
        print("Verified phone \(phoneNumber)")
        controller.dismiss(animated: true)
    }
}

its dismiss but the cancelled function not called