Skip to main content
LiveKit Swift SDK Banner

Welcome to LiveKit Swift SDK

Use this SDK to add realtime video, audio and data features to your Swift app. By connecting to LiveKit Cloud or a self-hosted server, you can quickly build applications such as multi-modal AI, live streaming, or video calls with just a few lines of code.

Quick Start

Get a working video call running in minutes with our step-by-step guide

Installation

Install the SDK via Swift Package Manager, CocoaPods, or Xcode

API Reference

Comprehensive API documentation for all SDK features

Example Apps

Full-featured iOS/macOS example app with source code

Key Features

Real-time Audio & Video

High-quality audio and video streaming with WebRTC

Screen Sharing

Share screens on iOS and macOS with ReplayKit integration

Data Channels

Send real-time data between participants

End-to-End Encryption

Built-in E2EE support for secure communications

Multi-platform

iOS 13+, macOS 10.15+, visionOS, tvOS 17+

SwiftUI & UIKit

Native UI components for both SwiftUI and UIKit

Platform Support

The LiveKit Swift SDK supports:
  • iOS 13.0 and later
  • macOS 10.15 and later
  • Mac Catalyst 14.0 and later
  • visionOS (via Swift Package Manager)
  • tvOS 17.0 and later (via Swift Package Manager)

Swift Concurrency

The SDK is built with Swift 6 concurrency and full strict concurrency support. It uses modern async/await patterns throughout the API, making it easy to integrate into your async Swift code.
Task {
    do {
        try await room.connect(url: url, token: token)
        try await room.localParticipant.setCamera(enabled: true)
        try await room.localParticipant.setMicrophone(enabled: true)
    } catch {
        print("Failed to connect: \(error)")
    }
}

What’s New in Version 2

Version 2 of the Swift SDK contains breaking changes from Version 1. Read the migration guide for a detailed overview of what has changed.
Version 2 brings:
  • Full Swift 6 concurrency support
  • Modern async/await API
  • Improved type safety
  • Better memory management
  • Enhanced performance

Getting Started

Ready to build your first LiveKit app? Start with our Quick Start guide to create a working video call in minutes.
1

Install the SDK

Add LiveKit to your project via Swift Package Manager
2

Get API credentials

Sign up for LiveKit Cloud or self-host a server
3

Build your first app

Follow the Quick Start to connect and publish your camera

Community & Support

Resources

Swift Example App

Full source code of iOS/macOS SwiftUI example

Minimal Examples

Collection of minimal code examples

SwiftUI Components

Pre-built SwiftUI components for common use cases

LiveKit Cloud

Hosted LiveKit service with global edge network

Build docs developers (and LLMs) love