tkach/PinCodeTextField

Setting CharacterLimit not working from code

Opened this issue · 3 comments

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)

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.

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

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