Skip to content

staeblorette/JMMessageInput

Repository files navigation

JMMessageInput

CI Status Version License Platform

Adds a messanger like input. You have all seen how this works.

Alt text Alt text Alt text

Features

  • Input bar moves along keyboard
  • Dynamic resizing of the input bar when text extends over a line
  • Controll of resizing behaviour with delegates
  • Supports Dynamic Type
  • Manual keyboard dismissal with gesture
  • Aligning input controlls to baseline
  • Respects Safe Area guides
  • Full control of visuals with storyboard or programatically

Example

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

Installation

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

pod 'JMMessageInput'

The framework has a dependency on 'JMContainerControllers'

Storyboard use

The ViewController will manage the layout of the bar. However due to problems of frameworks and IBDesignable, you have to attach trailing, leading and bottom contraint yourself, to avoid interface builder errors. Please make sure, however, to check the 'Remove at Buildtime' option. Same is for intrinsic content size.

Author

staeblorette, martin.staehler@gmail.com

License

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