Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear OTP Text Field #11

Open
rathodmayur93 opened this issue Oct 30, 2018 · 1 comment
Open

Clear OTP Text Field #11

rathodmayur93 opened this issue Oct 30, 2018 · 1 comment

Comments

@rathodmayur93
Copy link

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!)
        }
    }
}`
@varunpm1
Copy link
Owner

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

@NirajCapermint
Copy link

Is is solved? @rathodmayur93 @varunpm1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants