I would like to know how to build a
I solved the problem using a
UIWebView in place of the
UITextView. I render a local HTML page which is easier to customize in these cases.
For a better result I've set
scalePageToFit = true and disabled all the other options of the
UIWebView. Moreover, in order to disable the zooming by the user, I implemented the
viewForZoomingInScrollView(scrollView: UIScrollView) -> UIView? to simply returning
nil value to a better user experience.