CKSyncEngine.Event.AccountChange
The user signed in or out of their account.
Declaration
struct AccountChangeOverview
The sync engine automatically listens for account changes, and it sends this event when the user signs in or out. It’s your responsibility to react appropriately to this change and update your local persistence.
When the logged-in account changes, the sync engine resets its internal state. This means that it clears any pending database or record zone changes that you may have added.
Note that it’s possible the account changes multiple times while your app is quit. If this happens, you only receive one account change event representing the transition between the last known state and the current state.