<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUbiquitousKeyValueStoreAccountChange",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@Ea@NSUbiquitousKeyValueStoreServerChange@NSUbiquitousKeyValueStoreAccountChange"
  },
  "title" : "NSUbiquitousKeyValueStoreAccountChange"
}
-->

# NSUbiquitousKeyValueStoreAccountChange

A constant that indicates the current Apple account changed.

```
var NSUbiquitousKeyValueStoreAccountChange: Int { get }
```

## Discussion

When someone changes the Apple account of the current device, the system removes any
previous iCloud data and replaces it with data from the new account. Use the new
data to configure your app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)