Fawxy / CBPinEntryView

A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes.
MIT License
189 stars 41 forks source link

length and spacing not changing when being set programmatically #17

Closed AmineNac closed 5 years ago

AmineNac commented 5 years ago

i'm trying to change the length and spacing of the PinEntryView programmatically but it want change, it just sticks to the settings that i've set into the storyboard.

pinView.length = 6 pinView.spacing = CGFloat(10)

Fawxy commented 5 years ago

It might be better to not set anything in the storyboard, and only set your length/spacing programatically. Can you let me know if that works?

shengwanlin commented 5 years ago

It might be better to not set anything in the storyboard, and only set your length/spacing programatically. Can you let me know if that works?

It not works when set length/spacing programatically

Fawxy commented 5 years ago

I've allowed programmatic changes - it will reset the view though