Announcing ChatBird — A Swift library making it easy to create messaging apps using SendBird and Chatto.

David Rajan
Apr 2, 2020 · 3 min read

Are you trying to create an iOS chat app but finding it a chore to to connect the messaging service to your UI?

ChatBird is a Swift framework that bridges the SendBird SDK with the Chatto framework. SendBird is an in-app messaging platform but doesn't provide any built-in UI, and Chatto is one such library that provides a UI to build chat applications. However, this integration requires some work to accomplish, which is where ChatBird comes to the rescue!

ChatBird screenshot
ChatBird in action

So how does ChatBird work?

To get an idea about how ChatBird works, let’s first briefly go over SendBird and Chatto, the two libraries that ChatBird bridges together:

  • SendBird — provides a white label messaging platform with APIs that can be accessed using their SDK and the infrastructure for users on your app to send private or public text/file messages to each other.
  • Chatto — provides a framework to build a chat UI (displaying user input, message bubbles, timestamps, etc).

To connect the data sent/received in SendBird and display it in your iOS app you have to either manually create a lot of UI elements and lay them all out or use a framework like Chatto. But even Chatto requires a lot of manual setup to create data sources, presenters, decorators, and other pieces to make the integration work. So how do we make this easy?

Enter ChatBird. When building chat apps for clients we realized that we were writing the same type of code to bridge the messaging APIs to the UI for each app, reinventing the wheel each time. So we decided to break out this code into a reusable framework — ChatBird.

ChatBird provides an implementation of the UI provided by Chatto connected to SendBird, choosing sensible defaults you can use as a starting point for your own app. Just provide your SendBird app id, instantiate the ChatViewController with a SBDGroupChannel (currently only SendBird Group Channels are supported, but Open Channels may be supported in the future) — and watch your chat come to life!

Sounds good, but where do I get it?

ChatBird is supported in iOS 12+ and Swift 5 projects and is available as a CocoaPod. Simply add the following line into your Podfile to get started:

pod 'ChatBird'

You can find additional setup instructions and examples in the README. Happy chatting!

Velos Mobile is a Mobile Design & Development Agency in San Francisco. Drop us a note if you would like to chat about anything mobile! info@velosmobile.com

Velos Mobile

We are a group of technologists who are passionate about…

Velos Mobile

We are a group of technologists who are passionate about creating excellent mobile experiences. We’ve been doing this for a long time, and we love sharing our expertise from the first wireframe to the last bug. Check us out at www.velosmobile.com

David Rajan

Written by

Velos Mobile

We are a group of technologists who are passionate about creating excellent mobile experiences. We’ve been doing this for a long time, and we love sharing our expertise from the first wireframe to the last bug. Check us out at www.velosmobile.com

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store