Skip to content

Instantly share code, notes, and snippets.

@danielgomezrico
Created October 8, 2015 16:47
Show Gist options
  • Save danielgomezrico/75a9a02cb27f02c4b35f to your computer and use it in GitHub Desktop.
Save danielgomezrico/75a9a02cb27f02c4b35f to your computer and use it in GitHub Desktop.
iOS - Swift - UITextView scroll to bottom extension
import UIKit
extension UITextView {
func scrollToBotom() {
let range = NSMakeRange(text.characters.count - 1, 1);
scrollRangeToVisible(range);
}
}
@jeantimex
Copy link

Works perfectly! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment