Yet another autogrow UITextView subclass. No extra work required. No extra constraints needed. Autolayout compatible. It just works.
#Installation
##CocoaPods
This class is available via CocoaPods. Write this in your Podfile
:
pod 'SZAutogrowTextView'
Then run pod install
or pod update
##Manual
Simply clone this repo and copy SZAutogrowTextView.h
and SZAutogrowTextView.m
to your project.
Assign your textview's class to SZAutogrowTextView
in IB. Set the minimum and maximum constraints you need. Set animateHeightChange
to NO
if you don't want it's height to animate on text change.
See example project to see it's working.