A community-driven replacement for JSQMessagesViewController
Alternatives To Messagekit
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
656 days ago45May 10, 202162mitSwift
A community-driven replacement for JSQMessagesViewController
a year ago12mitJava
This is an Android library which can be used to add chat functionality to your android application with just a few lines of code.
Im Chat Cli41
3 years agoJavaScript
This is an instant messaging layout scaffold to solve the problem of internal system instant messaging without framework。 移动端IM(即时通讯)布局脚手架。
4 years agoJava
This is sample code for layout for chatting app like Whatsapp.
5 years agoJava
A copy of the famous messaging app Whatsapp for the Google Udacity Scholars Copy layout challenge also for practicing Layout making in Android
12 years ago3mitJavaScript
Simple messaging generators for Rails 3.x
Mitter Android Starter2
4 years agoKotlin
Starter template for whipping up an Android app with Mitter in no time. ⚡️
Alternatives To Messagekit
Select To Compare

Alternative Project Comparisons

A community-driven replacement for JSQMessagesViewController

Xcode MIT Contributions Welcome


  • Provide a 🚨safe🚨 environment for others to learn and grow through Open Source.
  • Make adding Chat💬 to a project easy.
  • Enable beautiful and customizable Chat UI's.
  • Provide an awesome Open Source project for the iOS open source community.
  • Help others learn.


Swift Package Manager - Recommended

Swift 5.3 in Xcode 12 added support for assets in Swift Packages. You can just add MessageKit package to your project by entering it's repository URL

Older versions of Swift and Xcode don't support MessageKit via SPM.



  • iOS 13 or later
  • Swift 5.5 or later

For iOS 12 or CocoaPods please use version 3.8.0

For iOS 11 please use version 3.3.0

For iOS 9 and iOS 10 please use version 3.1.1

Getting Started

Please have a look at the Quick Start guide and the FAQs.

We recommend you start by looking at the Example project or write a question with the "messagekit" tag on Stack Overflow. You can also look at previous issues here on GitHub with the "Question" tag.

For more on how to use the MessageInputBar, see the dependency it is based on InputBarAccessoryView. You can also see this short guide

Check out the full documentation here.

Cell Structure

Each default cell is a subclass of MessageContentCell which has 7 parts. From top down we have a: cellTopLabel, messageTopLabel, messageContainerView, messageBottomLabel, cellBottomLabel with the avatarView and accessoryView on either side respectively. Above we see the basic TextMessageCell which uses a MessageLabel as its main content.

This structure will allow you to create a layout that suits your needs as you can customize the size, appearance and padding of each. If you need something more advanced you can implement a custom cell, which we show how to do in the Example project.

InputBarAccessoryView Structure

The InputBarAccessoryView, 3rd party dependency from InputBarAccessoryView is a flexible and robust way of creating any kind of input layout you wish. Check the repo and examples there for more info.

Default Cells

The type of cell rendered for a given message is based on the MessageKind

public enum MessageKind {
    case text(String) // TextMessageCell
    case attributedText(NSAttributedString) // TextMessageCell
    case photo(MediaItem) // MediaMessageCell
    case video(MediaItem) // MediaMessageCell
    case location(LocationItem) // LocationMessageCell
    case emoji(String) // TextMessageCell
    case audio(AudioItem) // AudioMessageCell
    case contact(ContactItem) // ContactMessageCell
    case linkPreview(LinkItem) // LinkPreviewMessageCell

    /// A custom message.
    /// - Note: Using this case requires that you implement the following methods and handle this case:
    ///   - MessagesDataSource: customCell(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> UICollectionViewCell
    ///   - MessagesLayoutDelegate: customCellSizeCalculator(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> CellSizeCalculator
    case custom(Any?)

If you choose to use the .custom kind you are responsible for all of the cells layout. Any UICollectionViewCell can be returned for custom cells which means any of the styling you provide from the MessageDisplayDelegate will not effect your custom cell. Even if you subclass your cell from MessageContentCell. Read more about custom cells

Read more about the cases on the Quick Start guide.


Tests Build framework Build example app Danger

Great! Look over these things first.

What's Next?

Check out the Releases to see what we are working on next.


Have a question or an issue about MessageKit? Create an issue!

Interested in contributing to MessageKit? Click here to join our Slack.

Apps using this library

Add your app to the list of apps using this library and make a pull request.

Please provide attribution, it is greatly appreciated.

Core Team


Many thanks to the contributors of this project.


MessageKit is released under the MIT License.


Inspired by JSQMessagesViewController 👈 💯

Popular Layout Projects
Popular Messaging Projects
Popular User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.