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

# NSUbiquitousKeyValueStoreInitialSyncChange

A constant that indicates the initial attempt to load keys and values from iCloud is in progress.

```
var NSUbiquitousKeyValueStoreInitialSyncChange: Int { get }
```

## Discussion

The system downloads the existing keys and values from iCloud when someone logs into
a device using their Apple account. If you try to write a key and value to the iCloud
data store while this initial download is in progress, the system generates the
[`didChangeExternallyNotification`](/documentation/Foundation/NSUbiquitousKeyValueStore/didChangeExternallyNotification) notification with this key. Schedule the write
operations after a delay to give the system time to download the data and ensure the
local copies match the truth in iCloud.

---

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)