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

AutoFill on a UITextField is not working #41

Open
thanushkaPraveen opened this issue Jun 20, 2020 · 4 comments
Open

AutoFill on a UITextField is not working #41

thanushkaPraveen opened this issue Jun 20, 2020 · 4 comments
Labels
bug PR welcome Send us a PR with this feature

Comments

@thanushkaPraveen
Copy link

thanushkaPraveen commented Jun 20, 2020

Security Code Autofill in not working.
Automatic OTP verification in iOS - https://developer.apple.com/videos/play/wwdc2018/204/

this library auto fill is not working because of text field are not empty. first field has " " space. so pin number from sms is not showing on the keyboard.

@kpavankotesh kpavankotesh added bug PR welcome Send us a PR with this feature labels Jun 20, 2020
@akshitverma
Copy link

Is anyone working on this issue?

@thanushkaPraveen
Copy link
Author

thanushkaPraveen commented Jul 16, 2020

inside this library KWVerificationCodeView
there is a class KWVerificationCodeView under extensions
go to that class (KWVerificationCodeView) and change this line textFieldViews[0].numberTextField.text = " " to as this textFieldViews[0].numberTextField.text = "" (remove the space inside the quotation marks)

and then, go to KWTextFieldView class under classes folder and change this statement static let maxCharactersLength = 1 to as this static let maxCharactersLength = 0

Security Code Autofill works with these changes
pin number will show on the keyboard.

sometime ->
you may have to change numberTextField content type as One time code in the KWTextFieldView.xib
go to -> KWTextFieldView.xib click on numberTextField change content type as One time code under input traits

@MewanSnappymob
Copy link

MewanSnappymob commented Jul 17, 2020

inside this library KWVerificationCodeView
there is a class KWVerificationCodeView under extensions
go to that class (KWVerificationCodeView) and change this line textFieldViews[0].numberTextField.text = " " to as this textFieldViews[0].numberTextField.text = "" (remove the space inside the quotation marks)

and then, go to KWTextFieldView class under classes folder and change this statement static let maxCharactersLength = 1 to as this static let maxCharactersLength = 0

Security Code Autofill works with these changes
pin number will show on the keyboard.

sometime ->
you may have to change numberTextField content type as One time code in the KWTextFieldView.xib
go to -> KWTextFieldView.xib click on numberTextField change content type as One time code under input traits

This doesn't seem to work. Tested device - iOS 13.5.1 on iPhone 7

@kpavankotesh
Copy link
Member

inside this library KWVerificationCodeView
there is a class KWVerificationCodeView under extensions
go to that class (KWVerificationCodeView) and change this line textFieldViews[0].numberTextField.text = " " to as this textFieldViews[0].numberTextField.text = "" (remove the space inside the quotation marks)

and then, go to KWTextFieldView class under classes folder and change this statement static let maxCharactersLength = 1 to as this static let maxCharactersLength = 0

Security Code Autofill works with these changes
pin number will show on the keyboard.

sometime ->
you may have to change numberTextField content type as One time code in the KWTextFieldView.xib
go to -> KWTextFieldView.xib click on numberTextField change content type as One time code under input traits

@thanushkaPraveen Feel free to open a PR with these changes. We will test and if works, we will merge. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PR welcome Send us a PR with this feature
Projects
None yet
Development

No branches or pull requests

4 participants