PinCodeTextField icon indicating copy to clipboard operation
PinCodeTextField copied to clipboard

Setting CharacterLimit not working from code

Open jerryOkafor opened this issue 6 years ago • 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)

jerryOkafor avatar Jun 10 '19 10:06 jerryOkafor

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 avatar Jun 10 '19 12:06 jerryOkafor

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

jerryOkafor avatar Jun 10 '19 12:06 jerryOkafor

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

RomanPodymov avatar Jun 28 '19 23:06 RomanPodymov