---
title: NSUbiquitousKeyValueStoreQuotaViolationChange
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsubiquitouskeyvaluestorequotaviolationchange
---

# NSUbiquitousKeyValueStoreQuotaViolationChange

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

## Declaration

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

## Discussion

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.

## 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)
- [NSUbiquitousKeyValueStoreAccountChange](foundation/nsubiquitouskeyvaluestoreaccountchange.md)
