I have a multi-line UITextView and sometimes the text wraps several lines. I want to get the text from it with line breaks from what is visible on the iphone screen.
This is useful because I have a UITextView that changes font size with the UI and I want to capture the text as the user sees it on the screen.
Getting the text from the UITextView with textview.text
does not contain those. (Although it does contain any line breaks that a user typed by pressing "return" on the keyboard.)
I think maybe you need to measure the height of the UITextView and go through each character but I am not sure how to do that. I also want it to work with emojis.