How to calculate UITextView first baseline position relatively to the origin
<p>How can I calculate <code>UITextView</code> first baseline position?</p>

<p><a href="https://i.stack.imgur.com/jgRRC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jgRRC.png" alt="enter image description here"></a></p>

<p>I tried calculating it this way:</p>

<pre><code>self.textView.font!.descender + self.textView.font!.leading
</code></pre>

<p>However, the value I'm getting is not correct. Any ideas, hints?</p>