tkach / PinCodeTextField

MIT License
260 stars 100 forks source link

Setting CharacterLimit not working from code #60

Open jerryOkafor opened 5 years ago

jerryOkafor commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

RomanPodymov commented 5 years ago

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