UITextField Clear Button not in correct position
<p>I am working on a login screen for a swift app and the clear buttons in the text fields are not positioning themselves correctly. </p>

<p>The clear button cannot be seen when in portrait mode and it is kind of far from the right in landscape mode (iPhone 6s emulator). On an iPad Pro, the problem is even worse, with the x a little past halfway across the field. I can't find anything that will tell me how to reset its position to be right aligned and stay on the right of the field. </p>

<p>I don't have a custom class for it, and the only changes from the default are to make the clear button appear when editing and to have the keyboard type set to email keyboard and have the password field have secure text entry.</p>

<p><a href="http://i.stack.imgur.com/80G0H.png" rel="nofollow">Landscape</a></p>

<p><a href="http://i.stack.imgur.com/0SA6j.png" rel="nofollow">Portrait</a></p>