Skip to content

Setting CharacterLimit not working from code #60

Open

Description

@jerryOkafor

Please I have this code snippet and I don't know why it is not working:

let pincodeView  = PinCodeTextField()
pincodeView.isSecureTextEntry = true
pincodeView.characterLimit = 4
$0.addSubview(pincodeView)

Activity

  1. jerryOkafor commented on Jun 10, 2019

    @jerryOkafor
    Author

    I observed that when using this class in code, setting the characterLimit property does not determine the number of underlines drawn for the input field.

  2. jerryOkafor commented on Jun 10, 2019

    @jerryOkafor
    Author

    PincodeTextFiled always draw 5 underline not minding whatever value you set as the characterLimit. Is this supposed to be so?

  3. RomanPodymov commented on Jun 28, 2019

    @RomanPodymov

    Hello @jerryOkafor
    What PinCodeTextField's version do you use?

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