APExpandingTextView 0.1.0

APExpandingTextView 0.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by Aadesh Patel.



  • By
  • Aadesh Patel

APExpandingTextView

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.