sendChanges(_:)
Sends pending local changes to the server.
Declaration
final func sendChanges(_ options: CKSyncEngine.SendChangesOptions = .init()) async throwsParameters
- options:
The options to use when sending changes. For more information, see Sendchangesoptions.
Discussion
Use this method to request the sync engine sends all pending local changes to the server before your app continues. This isn’t necessary in normal use, as the engine automatically syncs your app’s records. It is useful, however, in scenarios where you require greater control over sync, such as a “Backup now” button or unit tests.