iCloud synchronization conflict resolution

Episode Clip • Oct 16, 2025

We demonstrate how our SQLiteData library handles conflict resolution when a record is edited at the same time on two different devices. We perform a “last edit wins” merge strategy on a per-field basis so that we minimize the chance for data loss. In contrast, SwiftData performs a “last edit wins” strategy for the entire record. This means if two devices edit the same record at once, all changes from one device will be completely overridden.

This is an excerpt from our episode CloudKit Sync: The SyncEngine.

Get started with our free plan

Our free plan includes 1 subscriber-only episode of your choice, access to 75 free episodes with transcripts and code samples, and weekly updates from our newsletter.

View plans and pricing