Skip to content

Simple Extension of UITextView that automatically extends the height of the textview while typing

License

Notifications You must be signed in to change notification settings

anafinotti/APExpandingTextView

 
 

Repository files navigation

APExpandingTextView

CI Status Version License Platform

Usage

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

Swift
var textView: APExpandingTextView = APExpandingTextView(frame: ...)
textView._delegate = self
self.view.addSubview(textView)

...

// APExpandingTextViewDelegate
func textViewWillExpand(textView: APExpandingTextView!) {
    ...
}

func textViewDidExpand(textView: APExpandingTextView!) {
    ...
}
Objective-C
APExpandingTextView *textView = [[APExpandingTextView alloc] initWithFrame: ...];
textView._delegate = self
[self.view addSubView:textView];

...

// APExpandingTextViewDelegate
- (void)textViewWillExpand(textView: APExpandingTextView) {
    ...
}

- (void)textViewDidExpand(textView: APExpandingTextView) {
    ...
}

Requirements

Installation

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

pod "APExpandingTextView"

Author

Aadesh Patel, [email protected]

License

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

About

Simple Extension of UITextView that automatically extends the height of the textview while typing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 51.4%
  • Swift 31.4%
  • Ruby 8.3%
  • Objective-C 5.4%
  • C 3.5%