AnthonyMDev / AMResizingTextView

A UITextView subclass that automatically resizes to the size of its content with a smooth transition. Written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMResizingTextView

Version License Platform

Usage

Just initialize a ResizingTextView just as you would a UITextView, or set the custom class of a UITextView in interface builder to ResizingTextView. No other configuration is needed!

You can listen for updates to the text view's height, use the provided delegate closures.

textView.willChangeHeight = { newHeight in
    // do something before the height changes
}

textView.didChangeHeight = { newHeight in
    // do something after the height changes
}

Installation

AMResizingTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AMResizingTextView'

Author

Anthony Miller, AnthonyMDev@gmail.com

License

AMResizingTextView is available under the MIT license. See the LICENSE file for more info.

About

A UITextView subclass that automatically resizes to the size of its content with a smooth transition. Written in Swift.

License:MIT License


Languages

Language:Swift 90.9%Language:Ruby 9.1%