---
title: NSUbiquitousKeyValueStoreAccountChange
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsubiquitouskeyvaluestoreaccountchange
---

# NSUbiquitousKeyValueStoreAccountChange

A constant that indicates the current Apple account changed.

## Declaration

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

## Discussion

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.

## See Also

### Detecting changes to values

- [didChangeExternallyNotification](foundation/nsubiquitouskeyvaluestore/didchangeexternallynotification.md)
- [NSUbiquitousKeyValueStoreChangeReasonKey](foundation/nsubiquitouskeyvaluestorechangereasonkey.md)
- [NSUbiquitousKeyValueStoreChangedKeysKey](foundation/nsubiquitouskeyvaluestorechangedkeyskey.md)
- [NSUbiquitousKeyValueStoreServerChange](foundation/nsubiquitouskeyvaluestoreserverchange.md)
- [NSUbiquitousKeyValueStoreInitialSyncChange](foundation/nsubiquitouskeyvaluestoreinitialsyncchange.md)
- [NSUbiquitousKeyValueStoreQuotaViolationChange](foundation/nsubiquitouskeyvaluestorequotaviolationchange.md)
