Sync Architecture
CloudKit Container
Dual-Store Architecture
┌─────────────────────────────────────────────┐
│ NSPersistentCloudKitContainer │
└───────────┬─────────────────┬───────────────┘
│ │
┌──────▼──────┐ ┌──────▼──────────┐
│Private Store│ │ Shared Store │
│ (default) │ │ (configuration) │
└──────┬──────┘ └──────┬──────────┘
│ │
┌──────▼──────┐ ┌──────▼──────────┐
│ Private │ │ Shared │
│ Database │ │ Database │
└─────────────┘ └─────────────────┘
CloudKit ContainerStore Configuration
Code Implementation
Automatic Sync
Sync is Non-Blocking
CKShare for Collaboration
Synchronization Guarantees
Last updated