Docs Menu

Atlas Device SDK for Swift

Use the Atlas Device SDK for Swift to develop iOS, macOS, watchOS and tvOS apps in Swift and Objective-C.

Learning Paths
Functions Icon

Quick Start

Minimal-explanation code examples of how to work with the Swift SDK. Write to the device database, and sync with other devices.

See Code Examples

Realm Mobile Icon

Working Example App

Learn from example by dissecting a working SwiftUI client app that uses the Swift SDK.

Explore an Example App

Tutorial Icon

Guided Tutorial

Follow a guided tutorial to learn how to adapt the example app to create your own working app.

Follow the Tutorial

What You Can Do

Use the SDK's open-source database - Realm - as an object store on the device. Use Device Sync to keep data in sync with your MongoDB Atlas cluster and other clients.

Essential Documentation
Realm Icon

Swift API Reference

Explore generated reference docs for the SDK's Swift APIs.

Swift API Reference

Realm Icon

Objective-C API Reference

Explore generated reference docs for the SDK's Objective-C APIs.

Objective-C API Reference

Tutorial Icon

SwiftUI Quick Start

Get started developing with SwiftUI.

Explore the Quick Start

Explore engineering and expert-provided example projects to learn best practices and common development patterns using the Swift SDK. Check out the Example Projects page for more sample apps.

Asymmetric Sync icon

Analytics/Telemetrics Data

Take sensor readings, push data to Atlas, and display the results in Atlas Charts or a time series collection.

Example app

Cloud Mobile Transfer Icon

Connection State Change & Error Handling

Learn best practices around handling Sync errors and client resets.

Example app

Realm Offline Icon

Offline Login and Database Access

Log in a Device Sync user and open a synced database offline.

Example app

Transaction Icon

Integrating In-App Purchases

Use StoreKit to add in-app purchases to a Device Sync-enabled recipe library app.

Example app