Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView line height

Not sure if that was mentioned before, but I could not find the answer anywhere.

I have UITextView with bunch of text (about 130 lines) varies, I need to get height of 5 lines of that text in my UITextView

like image 499
Andrius Steponavičius Avatar asked Jan 08 '23 12:01

Andrius Steponavičius


1 Answers

Try this:

textView.font.lineHeight * 5
like image 164
Abhinav Avatar answered Jan 18 '23 18:01

Abhinav