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.


Main Features

  • 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 SwiftUI and Combine: Built-it wrappers make using the SDK with the latest Apple UI framework a seamless experience. (coming 4/2021)
  • 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.
  • Fully open source implementation: You have access to the comple source code of the SDK here on GitHub.
  • Supports iOS 11+, Swift 5.2: We proudly support older versions of iOS, so your app can stay available to almost everyone.

Quick Links

Β 

  • Register to get an API key for Stream Chat.
  • Installation: Learn more about how to install the SDK using CocoaPods or SPM.
  • Cheat Sheet: Learn how to use the SDK by real world examples.
  • Demo app: This repo includes a fully functional demo app with example usage of the SDK.

Β 

Free for Makers

Stream is free for most side and hobby projects. To qualify your project/company needs to have < 5 team members and < $10k in monthly revenue. For complete pricing details visit our Chat Pricing Page

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 heirarchy.

  • 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 beahavior is predictable and matches system UI components; they respect tintColor, layourMargins, dynamic font sizes, and other system-defined UI constants.


πŸ‘‰ Migrating from 1.x/2.x

Please check our wiki page for migration.


Roadmap

  • ☐ Open UI components for subclassing and customization (3/2021, available in πŸ…±οΈ 3.2.0-beta)
  • β˜‘ Pinned messages (released in 3.1.4)
  • β˜‘ Multi-tenancy, teams (released in 3.1.4)
  • ☐ Local notification support (4/2021)
  • ☐ SwiftUI wrappers for UI components (4/2021)
  • ☐ Better photo gallery experience (4/2021)
  • ☐ Silent messages (4/2021)
  • ☐ Expired tokens (4/2021)
  • ☐ Channel invites (4/2021)
  • ☐ Paginating reactions (4/2021)
  • ☐ Message search (5/2021)
  • ☐ RxSwift wrappers (tbd)

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: 372
Last commit: 4 hours 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.

Release Notes

3.1.10
1 week ago

🐞 Fixed

  • Fix issue when opening attachments on iPad #1060 #997
  • Fix long tapping a message while keyboard is open causes a layout feedback loop #1063
  • Fix potentially inconsistent database state for channels for cases when /sync endpoint fails to respond because a user missed to many events (>1000) #1049

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