Skip to content

svetlanama/ASAutoResizingTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASAutoResizingTextView

[![CI Status](http://img.shields.io/travis/Svitlana Moiseyenko/ASAutoResizingTextView.svg?style=flat)](https://travis-ci.org/Svitlana Moiseyenko/ASAutoResizingTextView) Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "ASAutoResizingTextView"

After installation put the TextView control into your ViewController and in the Inspector choose the ASAutoResizingTextView class for it.

Alt text

Do not forget to create the param sendTextViewHeightConstraint(call it whatever you want) and to connect this with the constraint in the Inspector textViewHeight.

Alt text

Demo

Alt text

You can change the max-height manually directly from the Inspector settings.

Alt text

Author

Alexander Vasileyko, [email protected] (https://github.com/alexnodejs)

Svitlana Moiseyenko, [email protected] (https://github.com/svetlanama)

Referring links

https://github.com/adam-siton/AUIAutoGrowingTextView

http://www.hanspinckaers.com/multi-line-uitextview-similar-to-sms

License

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