My code below scrolls all the way to the bottom of the text field. How can I do the reverse of this and have the code function to scroll to the very beginning of the text field?
let bottom = NSMakeRange(theTextView.text.characters.count - 1, 1)
theTextView.scrollRangeToVisible(bottom)