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

copy paste OTP not working #28

Open
JenishMistry91 opened this issue Mar 17, 2022 · 5 comments
Open

copy paste OTP not working #28

JenishMistry91 opened this issue Mar 17, 2022 · 5 comments

Comments

@JenishMistry91
Copy link

Hello
I am using your code in one of the project. And in my project one of the requirement is to copy paste OTP. So If User copy OTP from anywhere and paste the code, it will fill all the OTP filed views with pasted OTP. Right now what happen is that, if I copied 123456 and paste, the whole OTP is pasted in first textfield only. But I want to paste only single character in each of textfield.

So please can anyone give me the solution for that.
Waiting for the response.
Thanks in advance.

@JGVB
Copy link

JGVB commented Oct 9, 2022

@JenishMistry91 Did you find a solution for this? perhaps #22

@JenishMistry91
Copy link
Author

@JGVB
Yes, I found the solution for this.
You can find OTPFiledView.swift file from below attachment and replace with your installed pods OTPFieldView.swift file.
OTPFieldView.swift.zip

@arjdev69
Copy link

arjdev69 commented Dec 7, 2022

Hi, is there another solution? I cannot change my POD, as I publish the project for the QA team to test.

@JGVB
Copy link

JGVB commented Dec 7, 2022

@arjdev69 you can fork this repo and make the changes in your own forked code.

@JenishMistry91 Would you consider making a pr for the changes?

@Anilkumar18
Copy link

@JGVB Yes, I found the solution for this. You can find OTPFiledView.swift file from below attachment and replace with your installed pods OTPFieldView.swift file. OTPFieldView.swift.zip

@JGVB Yes it working fabulous, great job.

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

4 participants