caipivara
10/8/2015 - 4:47 PM

iOS - Swift - UITextView scroll to bottom extension

iOS - Swift - UITextView scroll to bottom extension

import UIKit

extension UITextView {
    
    func scrollToBotom() {
        let range = NSMakeRange(text.characters.count - 1, 1);
        scrollRangeToVisible(range);
    }
    
}