//
//  ResetPasscodeViewController+Delegate.swift
//  KAI Membership
//
//  Created by DAKiet on 11/03/2021.
//

import UIKit

// MARK: KAITextFieldDelegate
extension ResetPasscodeViewController: KAITextFieldDelegate {
    
    func kAITextFieldDidChange(_ textField: UITextField, for view: UIView) {
        isConfirmEnabled = !(textField.text ?? "").isEmpty
    }
    
    func kAITextFieldShouldReturn(_ textField: UITextField, for view: UIView) -> Bool {
        return false
    }
    
    func kAITextFieldShouldClear(_ textField: UITextField, for view: UIView) -> Bool {
        return true
    }
}
