UITextView: much better performance after second scroll

I have a UITextView with a lot of text as well as images that I add using NSTextAttachment.

When scrolling the text for the first time, it is very laggy. However, when I get to the end, I can scroll through all the text without lagging.

I think images and text are lazy loaded when scrolling for the first time.

Is it possible to make it always fast?

Thank you in advance

+3


source to share





All Articles