ASAutoResizingTextView 0.1.12

ASAutoResizingTextView 0.1.12

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by svetlanama.



  • By
  • Svitlana Moiseyenko

ASAutoResizingTextView

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.