---
title: FileManager.UbiquityIdentityDidChangeMessage
framework: foundation
role: symbol
role_heading: Structure
path: foundation/filemanager/ubiquityidentitydidchangemessage
---

# FileManager.UbiquityIdentityDidChangeMessage

A message a file manager sends after the iCloud (“ubiquity”) identity changes.

## Declaration

```swift
struct UbiquityIdentityDidChangeMessage
```

## Overview

Overview 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 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 ubiquityIdentityDidChange, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is FileManager. This message interoperates with the notification 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.

## Topics

### Creating a message

- [init()](foundation/filemanager/ubiquityidentitydidchangemessage/init().md)

## Relationships

### Conforms To

- [NotificationCenter.MainActorMessage](foundation/notificationcenter/mainactormessage.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
