Skip to content

A UITextView subclass that automatically resizes to the size of its content with a smooth transition. Written in Swift.

License

Notifications You must be signed in to change notification settings

AnthonyMDev/AMResizingTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMResizingTextView

Version License Platform

Usage

Just initialize a ResizingTextView just as you would a UITextView, or set the custom class of a UITextView in interface builder to ResizingTextView. No other configuration is needed!

You can listen for updates to the text view's height, use the provided delegate closures.

textView.willChangeHeight = { newHeight in
    // do something before the height changes
}

textView.didChangeHeight = { newHeight in
    // do something after the height changes
}

Installation

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

pod 'AMResizingTextView'

Author

Anthony Miller, [email protected]

License

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

About

A UITextView subclass that automatically resizes to the size of its content with a smooth transition. Written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •