PinCodeTextField
PinCodeTextField copied to clipboard
.oneTimeCode
Does it support textContentType = .oneTimeCode ??
Does this support keyboard auto fill for onetime code?
Hi guys, sorry for delay. This control doesn't support .oneTimeCode, please take a look at https://github.com/tkach/PinCodeTextField/issues/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 in
self?.otpTextField.text = text
})
.disposed(by: self.disposeBag)
@farshadjahanmanesh this can also be achieved by using property observer as I’m not currently using RXSwift.
@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.