Skip to content

The number are appearing twice  #3

Description

@ShreeBhagwat

iam using this in my trail app. I have set it programmatically.
but when i enter the otp number the appears twice. on the first text field and in the centre .
this is my code
lazy var verificationTextField : ActivationCodeTextField = { let textFiled = ActivationCodeTextField() textFiled.maxCodeLength = 6 textFiled.minWidthTextField() textFiled.customPlaceholder = "p"; textFiled.keyboardType = UIKeyboardType.numberPad textFiled.font = UIFont.systemFont(ofSize: 20.0) textFiled.translatesAutoresizingMaskIntoConstraints = false return textFiled }()
this is how i constraints it
verificationTextField.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true verificationTextField.topAnchor.constraint(equalTo: verificationNote.bottomAnchor, constant: 10).isActive = true verificationTextField.widthAnchor.constraint(equalToConstant: 300).isActive = true verificationTextField.heightAnchor.constraint(equalToConstant: 40).isActive = true

Activity

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