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
}
AMResizingTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AMResizingTextView'
Anthony Miller, AnthonyMDev@gmail.com
AMResizingTextView is available under the MIT license. See the LICENSE file for more info.