title: UITextField clearButton adjust inset of textfield when it appears
body: <p>I have a UITextField that is center-aligned. I want to show the clear button when editing, so I use:</p>
  
  <pre><code>textfield.clearButtomMode = .whileEditing
  </code></pre>
  
  <p>The problem is that when the clear button appears, it moves the rest of the content in the textField to the left, and it's very jarring for someone who is typing.</p>
  
  <p>Here's an illustration:</p>
  
  <p><a href="https://i.stack.imgur.com/1oFFd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1oFFd.png" alt="enter image description here"></a></p>
  
  <p>Any clue how to make it not do this, or make the clear button appear when the textField becomes first responder?</p>