Contents

didChangeExternallyNotification

Posted when the value of one or more keys changes due to incoming data from iCloud.

Declaration

class let didChangeExternallyNotification: NSNotification.Name

Discussion

If your app is running when iCloud delivers changes from another device, the system generates this notification for your app. Use it to update your app’s content in response to the new data.

The user info dictionary can contain additional data about the reason for the notification:

To receive this notification, register for it shortly after launch. Specify the default key-value store object as the object from which you want to receive notifications.

See Also

Detecting changes to values