Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting CharacterLimit not working from code #60

Open
jerryOkafor opened this issue Jun 10, 2019 · 3 comments
Open

Setting CharacterLimit not working from code #60

jerryOkafor opened this issue Jun 10, 2019 · 3 comments

Comments

@jerryOkafor
Copy link

jerryOkafor commented Jun 10, 2019

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)
@jerryOkafor
Copy link
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.

@jerryOkafor
Copy link
Author

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

@RomanPodymov
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants