How to prevent text from shifting around as user enters password?

时间:2016-04-15 14:55:32

标签: ios swift user-interface passwords uitextfield

Working on an iOS project (iOS 9.1), using standard system San Francisco font.

In my password entry UITextField, the text vertically shifts around as characters turn into the bullet/dot mask things.

Because the dots are smaller then normal characters, something changes with the vertical alignment, making for a jittery experience.

enter image description here

Can this be avoided?

I've tried changing alignment settings on the UITextField, and alignment settings on the UITextField's parent stackview.

Any other suggestions?

1 个答案:

答案 0 :(得分:0)

尝试减小字体大小和/或增加UITextField的高度。