I wanted to know when a text is wrapped by the frame of the text view is there any delimiter with which we can identify whether the text is wrapped or not.
For insta
You need to consider textView.textContainerInset, also need to round the calculated value since line number definitely is an integer
float rawLineNumber = (textView.contentSize.height - textView.textContainerInset.top - textView.textContainerInset.bottom) / textView.font.lineHeight;
int finalLineNumber = round(rawLineNumber)
In real case, you may see following result rawLineNumber = 3.008099 finalLineNumber = 3 (3 lines)