jverdi / JVFloatLabeledTextField

UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users
MIT License
7.19k stars 732 forks source link

FloatLabel clipped when setting floatingLabelXPadding in iOS 9 and earlier. #180

Closed jelteliekens closed 7 years ago

jelteliekens commented 7 years ago

I'm setting the floatingLabelXPadding of the phone number textfield to the width of the country code button in the front so it's nicely aligned with it but on iOS 9 and earlier the floatLabel is clipped (see screenshot).

Is there anything I can do to solve it?

simulator screen shot - iphone 6s - 2017-10-26 at 15 15 49

jelteliekens commented 7 years ago

Solved by setting the clipsToBounds property of my textfield to NO.