VPMOTPView icon indicating copy to clipboard operation
VPMOTPView copied to clipboard

Clear OTP Text Field

Open rathodmayur93 opened this issue 7 years ago • 1 comments

Kindly Add Below Code To Clear OTP TextField

` func clearAllTextField(){ for index in stride(from: 0, to: otpFieldsCount, by: 1) {

        var otpField = viewWithTag(index + 1) as? VPMOTPTextField
        
        if otpField == nil {
            otpField = getOTPField(forIndex: index)
            deleteTextVPMOTPTextField(in: otpField!)
            otpField?.text = ""
        }else{
            deleteTextVPMOTPTextField(in: otpField!)
        }
    }
}`

rathodmayur93 avatar Oct 30 '18 12:10 rathodmayur93

@rathodmayur93 Could you please raise a PR, if possible?

varunpm1 avatar Jul 12 '19 07:07 varunpm1

Is is solved? @rathodmayur93 @varunpm1

NirajCapermint avatar Aug 17 '20 13:08 NirajCapermint