Realm is a mobile database for iOS, macOS, tvOS, and watchOS with Swift and Objective-C APIs. Data persists locally for offline-first apps and live-updating objects.
Overview
Realm is a mobile database that runs on Apple devices and stores application data locally on disk. This distribution provides Swift and Objective-C bindings for iOS, macOS, tvOS, and watchOS, targeting app developers who want an object-oriented persistence layer without a separate ORM.
The data model is object-oriented and integrated with SwiftUI so view updates can track live object changes. Objects propagate updates across readers in real time, which suits reactive interfaces. Encryption options cover data at rest and in transit for sensitive payloads.
Consumers can add Realm through Swift Package Manager, CocoaPods, Carthage, or bundled XCFrameworks. The on-device database remains available as an open source project even as MongoDB Atlas Device SDK cloud sync and related App Services capabilities are deprecated and removed.
Project materials position Realm as a mobile-oriented alternative to Core Data for local persistence. Teams relying on Atlas Device Sync need separate migration plans because sync-specific SDK features are no longer supported.
Key features
- Object-oriented local data model
- Swift and Objective-C APIs
- SwiftUI integration
- Live updating objects
- On-disk offline persistence
- Optional data encryption
- Multiple package install paths
- Prebuilt XCFramework binaries
Use cases
- Offline-first iOS applications
- Reactive mobile data layers
- Encrypted local app storage
- SwiftUI apps with live data
Does the same job as
Realm Swift doesn't name these products itself, but its own description shows it does the same job.