AMResizingTextView
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, [email protected]
License
AMResizingTextView is available under the MIT license. See the LICENSE file for more info.