MessengerKit

screenshot of MessengerKit

:speech_balloon: A UI framework for building messenger interfaces on iOS

Overview

MessengerKit is a drop-in UI for messenger interfaces on iOS built in Swift. It is centered around a single UIViewController and is themeable to fit your needs. It includes powerful features such as UICollectionView-based layout with pre-loading and caching of size calculation for bubbles, auto-growing input view, multiple included cell types (text, large-emoji, image, video), presentation of SFSafariViewController, built-in customisable themes, a custom theming system to bring your own UICollectionViewCells, headers, footers, and input views, avatar support, and more. The framework was built for and is used in production at Travamigos.

Features

  • UICollectionView-based layout with pre-loading and caching of size calculation for bubbles
  • Auto-growing input view
  • Multiple included cell types: text, large-emoji, image, video
  • Presentation of SFSafariViewController
  • Built-in, customisable themes
  • Custom theming system to bring your own UICollectionViewCells, headers, footers, and input views
  • Avatar support (currently only in the travamigos theme)

Manual

  1. Drag the contents of the MessengerKit folder into your Xcode Project.

CocoaPods

  1. Add the following to your project's Podfile:
pod 'MessengerKit'
  1. Run pod install to install the MessengerKit framework.

Summary

MessengerKit is a versatile and themeable drop-in UI for messenger interfaces on iOS. It offers powerful features and supports customization through its theming system. It is compatible with Swift 4.2 and iOS 10.0 or later. You can install it manually by dragging the contents of the MessengerKit folder into your Xcode Project, or via CocoaPods by adding the appropriate line to your Podfile and running pod install.