How to get visible text as a string on a textView in iOS?
<p>I have an <code>UITextView</code>. On that textview I have some text. But when I resize (<em>decreasing the height of textview</em>) the <code>TextView</code> then only 2 line text is visible.</p>

<p>So How can I get that visible text as a string. I means how can I split that visible text from main text string.</p>

<p>Below images are for reference.</p>

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

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

<p>I need only <strong><em>consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et</em></strong> text as a string from main string.</p>

<p>How can I get it ?</p>