devraj / PassCodeInput

A Pass Code like Input implemented using SwiftUI
MIT License
25 stars 4 forks source link

SMS Autofill #25

Open Psingh148 opened 2 years ago

Psingh148 commented 2 years ago

Hi, I want to implement the feature where user receive OTP via text and it Autofills the textfields. Right now what's happening is I get the OTP via text and it shows up on the NumberPad but when I clicked on it then only first number is filed in textfield. Could you please suggest something how to achieve autofill the fields just by clicking on received OTP pin ?

devraj commented 2 years ago

@Psingh148 first of all apologies I hadn't spotted the ticket.

I would assume what's happening is the autofill is firing a different set of events than the keyboard input. Are you able to share any code that I am able to look at (unless of course it's commercial software).

I should turn my attention to this library and complete some of the pending features.