A message a file manager sends after the iCloud ("ubiquity") identity changes.
The system generates this notification when the user logs in to or out of an iCloud account or enables or disables the syncing of documents and data.
This notification is your cue to update caches and any interface elements displaying iCloud–related content.
For example, hide all references to iCloud files when the user logs out of iCloud.
When your app receives this notification, get the new token from the ``FileManager/ubiquityIdentityToken`` instance property.
The value of that token is `nil` if the a person disabled iCloud or logged out.
Observe this message with the identifier ``NotificationCenter/MessageIdentifier/ubiquityIdentityDidChange``, or specify its type directly to the `addObserver(of:for:using:)` method.
The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``FileManager``.
This message interoperates with the notification ``NSNotification/Name/NSUbiquityIdentityDidChange``.
The system notifies observers of the message when the ``NotificationCenter`` posts the notification.
Similarly, the system notifies observers of the notification when it posts the message.
Converts a posted notification into this main actor message type for any observers.
To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message.
- Parameter notification: The posted ``Notification``.
- Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.
get · iOS 26.0+
name
TypeScript
static get nameValue(): NSNotification_Name
Swift declaration
static var name: Notification.Name { get }
A optional name corresponding to this type, used to interoperate with notification posters and observers.