Swiftpack.co - GetStream/stream-chat-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
GetStream/stream-chat-swift
Official iOS SDK for Stream Chat. Build your own chat experience for iOS.
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "ui-3.0-beta.4")

The official iOS SDK for Stream Chat

The StreamChatUI SDK is the official iOS SDK for Stream Chat, a service for building chat and messaging applications.


Which Version Should I Choose?

  • 4.x is the current production version. (Recommended)
  • 3.x is the previous production version and in maintenance mode.
  • 2.x is in maintenance mode.

Main Features

  • Offline support: Browse channels and send messages while offline.
  • Familiar behavior: The UI elements are good platform citizens and behave like native elements; they respect tintColor, layoutMargins, light/dark mode, dynamic font sizes, etc.
  • Swift native API: Uses Swift's powerful language features to make the SDK usage easy and type-safe.
  • Uses UIKit patterns and paradigms: The API follows the design of native system SDKs. It makes integration with your existing code easy and familiar.
  • First-class support for Combine: The StreamChat SDK (Low Level Client) has Combine wrappers to make it really easy use in an app that uses Combine.
  • Fully open-source implementation: You have access to the complete source code of the SDK here on GitHub.
  • Supports iOS 11+: We proudly support older versions of iOS, so your app can stay available to almost everyone.

Quick Links

  • iOS/Swift Chat Tutorial: Learn how to use the SDK by following our simple tutorial.
  • Register: Register to get an API key for Stream Chat.
  • Installation: Learn more about how to install the SDK using CocoaPods, SPM or Carthage.
  • Documentation: An extensive documentation is available to help with you integration.
  • Demo app: This repo includes a fully functional demo app with example usage of the SDK.
  • Example apps: This section of the repo includes fully functional sample apps that you can use as reference.

Free for Makers

Stream is free for most side and hobby projects. You can use Stream Chat for free if you have less than five team members and no more than $10,000 in monthly revenue.

Main Principles

  • Progressive disclosure: The SDK can be used easily with very minimal knowledge of it. As you become more familiar with it, you can dig deeper and start customizing it on all levels.

  • Highly customizable: Every element is designed to be easily customizable. You can modify the brand color by setting tintColor, apply appearance changes using custom UI rules, or subclass existing elements and inject them everywhere in the system, no matter how deep is the logic hierarchy.

  • open by default: Everything is open unless there's a strong reason for it to not be. This means you can easily modify almost every behavior of the SDK such that it fits your needs.

  • Good platform citizen: The UI elements behave like good platform citizens. They use existing iOS patterns; their behavior is predictable and matches system UI components; they respect tintColor, layourMargins, dynamic font sizes, and other system-defined UI constants.


We are hiring

We've recently closed a $38 million Series B funding round and we keep actively growing. Our APIs are used by more than a billion end-users, and you'll have a chance to make a huge impact on the product within a team of the strongest engineers all over the world. Check out our current openings and apply via Stream's website.


Quick Overview

Channel List

Features Preview
A list of channels matching provided query
Channel name and image based on the channel members or custom data
Unread messages indicator
Preview of the last message
Online indicator for avatars
Create new channel and start right away

Message List

Features Preview
A list of message in a channel
Photo preview
Message reactions
Message grouping based on the send time
Link preview
Inline replies
Message threads
GIPHY support

Message Composer

Features Preview
Support for multiline text, expands and shrinks as needed
Image and file attachments
Replies to messages
Tagging of users
Chat commands like mute, ban, giphy

Chat Commands

Features Preview
Easily search commands by writing / symbol or tap bolt icon
GIPHY support out of box
Supports mute, unmute, ban, unban commands
WIP support of custom commands

User Tagging Suggestion

Features Preview
User mentions preview
Easily search for concrete user
Mention as many users as you want

GitHub

link
Stars: 473
Last commit: 2 minutes ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

4.1.0
1 week ago

🐞 Fixed

  • Fixes left buttons not being hidden when a command was added in the composer #1528
  • Fixes attachments not being cleared when a command was added #1528
  • Fix imageURL is incorrectly encoded as image_url during connectUser #1523
  • Fix fallback to Components.default because of responder chain being broken in ChatChannelVC/ChatThreadVC/ChatMessageCell #1519
  • Fix crash after ChatClient disconnection #1532
  • Fix when sending a new message UI flickers #1536
  • Fix crash on GalleryVC happening on iPad when share button is clicked #1537
  • Fix pending API requests being cancelled when client is connecting for the first time #1538

✅ Added

  • Make it possible to customize video asset (e.g. include custom HTTP header) before it's preview/content is loaded #1510
  • Make it possible to search for messages containing attachments of the given types #1525
  • Make ChatReactionsBubbleView open for UI customization #1526

🔄 Changed

  • Rename VideoPreviewLoader type to VideoLoading and videoPreviewLoader to videoLoader in Components #1510
  • Changes ComposerVC.Content.command to let instead of var and introduces ComposerVC.content.addCommand to add commands to a message for a safer approach #1528

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics