How do I programmatically scroll a text view in iOS using Swift so that a particular range of the text that was hidden becomes visible?

I want to use a UITextView object in iOS using Swift to show text using the NSAtrributedString or the NSTextStorage class, so that I can highlight a range of text.

How would I programmatically scroll the text view so that a highlighted range of text would become visible if it's currently hidden because it is scrolled off the text view?