<!--
{
  "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/NSUbiquitousKeyValueStoreQuotaViolationChange",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@Ea@NSUbiquitousKeyValueStoreServerChange@NSUbiquitousKeyValueStoreQuotaViolationChange"
  },
  "title" : "NSUbiquitousKeyValueStoreQuotaViolationChange"
}
-->

# NSUbiquitousKeyValueStoreQuotaViolationChange

A constant that indicates an attempt to write data exceeded the quota limits.

```
var NSUbiquitousKeyValueStoreQuotaViolationChange: Int { get }
```

## Discussion

The system enforces the following limitations for data you save to the iCloud key-value store:

- Your app can have no more than 1024 keys in the iCloud key-value store.
- The total amount of available storage space for all values is 1 megabyte.
- The maximum size for a single value is 1 megabyte. Therefore, if you associate 1 megabyte
  of data with a single key, you can’t write other keys to the store.

---

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)