Giter VIP home page Giter VIP logo

vpmotpview's People

Contributors

varun-pm avatar varunpm1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vpmotpview's Issues

Auto fill VPMOTPView with the received OTP from Messages

I wonder if I can it's possible to autofill the otpView from the received Message.
With normal text field, I have found that this line of code will solve the issue
textField.textContentType = .oneTimeCode
Is that possible with VPMOTPView?

Clear OTP Text Field

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!)
        }
    }
}`

Bug: Every time keyboard restarting!

otpFieldsCount is 4. I had keyboard type .alphanumeric.
Suppose I want to Enter like "231C"

  1. First Input field, I change keyboard to number (enter "2")
  2. while editing second input field, keyboard automatically restart from alphabet, so again I need to change keyboard to number(enter "3")
  3. For third field again change to alphabet

Expected output:
Suppose previous input is number keyboard, next should not restart. again should be in same mode.

Changing border color after initialised

Hello! I have a problem, please can you give me some advices?

I want to check the OTP and if it's wrong change Default Border Color to red, for example. But the method otpFieldDefaultBorderColor doesn't work after otpTextView.initalizeUI() has initialised. Is there any way to change border color?

Thank you!

Move textField

how can i set When first textField is nill then another textField is not enable to touch. current situation user can touch and input any textField.

Like First textField is empty then second and onward TextField not enable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.