Combine-ing MongoDB Realm with SwiftUI

MongoDB Realm is a whole new animal built upon the power of MongoDB and the Atlas portal. This new generation of Realm takes a huge leap forward replacing Realm Cloud. It comes with a large suite of tools to manage, monitor, and configure your app and data. We’ll take a quick look at the MongoDB tools most relevant to a mobile app developer as understanding them is essential for getting your app’s back end up and running on MongoDB Realm.

We’ll take a look at the new v10 RealmSwift SDK and the changes to connecting, partitioning, and interacting with realms using the new APIs. Gone are the days of deciding which community Rx extension library to pair with Realm as Combine support is built right in! I will make sure to call out a few dragons and how to avoid them with some of the limitations in SwiftUI.

Included is a demo of the classic Realm “Hello World” app: the Task Tracker tutorial, but this one has a SwiftUI interface and uses Combine for all the plumbing. We’ll look closely at how user data is partitioned into personal realms and watch live updates across devices. ✨ The demo app is open source so you can follow along and reference it later as you build your own apps.