You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@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 inself?.otpTextField.text = text
}).disposed(by:self.disposeBag)
Reacted by FarhanBykea, Eric kogi and DianaNareiko
@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.
Activity
sanjeevi-k commentedon Jan 28, 2020
Does this support keyboard auto fill for onetime code?
tkach commentedon 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
fredjahanmanesh commentedon Apr 15, 2020
@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 commentedon Apr 15, 2020
@FarshadJahanmanesh this can also be achieved by using property observer as I’m not currently using RXSwift.
shoaibhassan1 commentedon Dec 23, 2020
@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.