title: UITextField text not aligning properly
body: <p>I have a UITextField that should be aligned vertically to the center; the placeholder text properly aligns like so:</p>
  
  <p><a href="https://i.stack.imgur.com/mQ7TH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQ7TH.png" alt="enter image description here"></a></p>
  
  <p>However, when text is entered it is aligned at the bottom of the textField:</p>
  
  <p><a href="https://i.stack.imgur.com/Lj91y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lj91y.png" alt="enter image description here"></a></p>
  
  <p>In storyboard, I have set it to sit vertically in the center, and furthermore in code:</p>
  
  <pre><code>        nameTextField.contentVerticalAlignment = .center
  </code></pre>
  
  <p>I am still baffled as to why it inputs text at the bottom, yet the placeholder sits correctly in the center.</p>