I’d love to see some tutorials on this too, particularly the best way to handle certain scenarios:
- how to best sync an existing database when app is first updated
- how to show the user than data syncing is complete (or not) - can’t see a way to do this at the moment. Errors show on the console (ie. .limitExceeded) but there is no way to relay this to the user via the UI.
- how to stop local data vanishing when the user turns off iCloud for your app in Settings - this is easy enough to do within your app (ie. presenting either NSPersistentContainer or NSPersistentCloudKitContainer depending on the user’s preference - stored in UserDefaults).
I’ve spent the last 3 months updating my app for iOS 13, but I’ve left this NSPersistentCloudKitContainer functionality until the end as there are still some issues (above) I need to address so my users don’t think their data is corrupt as it syncs in fits & starts!