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.
Get Started with the Swift SDK

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

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

Guided Tutorial
Follow a guided tutorial to learn how to adapt the example app to create your own working app.
Develop Apps with the SDK
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.
Recommended Reading


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

Example Projects
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.

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

Connection State Change & Error Handling
Learn best practices around handling Sync errors and client resets.

Offline Login and Database Access
Log in a Device Sync user and open a synced database offline.

Integrating In-App Purchases
Use StoreKit to add in-app purchases to a Device Sync-enabled recipe library app.