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.
Usage is straight forward.
let textView = ruuiDynamicTextView(frame: CGRectMake(10, 10, 100, 35)) textView.maxHeight = 100 containerView.addSubview(textView)
- Grow & shrink
- Keeps caret in view
- Animates cleanly
- Maximum and minimum size
- Tested on iOS 9.3.1