Skip to content

A reusable UITextView that expands and contracts like a chat input field.

Notifications You must be signed in to change notification settings

AndresCanella/ruuiDynamicTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ruuiDynamicTextView

A production level reusable UITextView that expands and contracts like a chat input field.

This class takes care of these things while minimizing jitter and keeping the caret in view.

Class is WIP but should be stable enough for production use.

I love contributions. Send me your fixes.

Demo

alt text

Usage

Usage is straight forward.

let textView = ruuiDynamicTextView(frame: CGRectMake(10, 10, 100, 35))
textView.maxHeight = 100
containerView.addSubview(textView)

Features

  • Grow & shrink
  • Keeps caret in view
  • Animates cleanly
  • Maximum and minimum size

Testing

  • Tested on iOS 9.3.1

About

A reusable UITextView that expands and contracts like a chat input field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages