title: Swift How to calculate one line text height from its font
body: <p>I ran into an issue where I needed to animate translating a label vertically the same distance of a textField's text height. In most cases just <code>textField.bounds.heigt</code> but if the textField's height is bigger than the text height it will not be any good for me. So I need to know: 
  <strong>How to calculate the line height of the string text from its <code>UIFont</code>?</strong></p>
  
  <p>Regarding the duplicate:
  There's a little bit different of what I need. that answer(which I've referenced in my answer) get the total height depending on 1) the string 2) the width 3) the font. What I needed is <strong>one line height dpending only on the font</strong>.</p>