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

.oneTimeCode #72

Open
FarhanBykea opened this issue Jan 17, 2020 · 5 comments
Open

.oneTimeCode #72

FarhanBykea opened this issue Jan 17, 2020 · 5 comments

Comments

@FarhanBykea
Copy link

Does it support textContentType = .oneTimeCode ??

@sanjeevi-k
Copy link

Does this support keyboard auto fill for onetime code?

@tkach
Copy link
Owner

tkach commented Jan 30, 2020

Hi guys, sorry for delay.
This control doesn't support .oneTimeCode,
please take a look at #44 for detailed explanation.
I would suggest to use UITextField or UITextView and customize it or look for third-party controls specifically saying .oneTimeCode is supported

@valentinjahanmanesh
Copy link

@tkach @FarhanBykea
as a trick, just put a textfield (with transparent background and text color) above the PinCodeTextField and in it's textDidChange delegate set the new text to pintextfield's text... with rx it is just a line of code

       dummyTextField
          .rx
          .text
          .changed
          .subscribe(onNext: {[weak self] text in
                  self?.otpTextField.text = text
           })
        .disposed(by: self.disposeBag)

@FarhanBykea
Copy link
Author

@FarshadJahanmanesh this can also be achieved by using property observer as I’m not currently using RXSwift.

@shoaibhassan1
Copy link

@FarhanBykea can this be done by creating a text field with code and put it above this control, Set its delegate, and assign text to this control got from delegate.

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

5 participants