Skip to content

.oneTimeCode #72

Open
Open

Description

@FarhanBykea

Does it support textContentType = .oneTimeCode ??

Activity

  1. sanjeevi-k commented on Jan 28, 2020

    @sanjeevi-k

    Does this support keyboard auto fill for onetime code?

  2. tkach commented on Jan 30, 2020

    @tkach
    Owner

    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

  3. fredjahanmanesh commented on Apr 15, 2020

    @fredjahanmanesh

    @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)
  4. FarhanBykea commented on Apr 15, 2020

    @FarhanBykea
    Author

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

  5. shoaibhassan1 commented on Dec 23, 2020

    @shoaibhassan1

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions