Contents

pendingDatabaseChanges

A list of database changes that the sync engine has yet to send to the iCloud servers.

Declaration

final var pendingDatabaseChanges: [CKSyncEngine.PendingDatabaseChange] { get }

Discussion

This array contains any pending database changes to send to the iCloud servers. After the sync engine sends those changes, your app’s sync delegate receives an event of type CKSyncEngine.Event.SentDatabaseChanges.

The sync engine keeps this list up-to-date while sending changes to the server. For example, when it successfully saves a zone, it will remove that change from this list. If it fails to send a change due to some retryable error (e.g. a network failure), it will keep that change in this list.

Use the add(pendingDatabaseChanges:) and remove(pendingDatabaseChanges:) methods to modify the array’s contents.

See Also

Accessing pending changes