Skip to content

Sega-Zero/SZAutogrowTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Pod Version Pod Platform Pod License

SZAutogrowTextView

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.

Usage

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.