<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/UserDefaults/sizeLimitExceededNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSUserDefaultsSizeLimitExceededNotification"
  },
  "title" : "sizeLimitExceededNotification"
}
-->

# sizeLimitExceededNotification

Posted when the amount of data in the defaults database exceeds the allowed maximum.

```
class let sizeLimitExceededNotification: NSNotification.Name
```

## Discussion

In tvOS, the system posts this notification as a warning when the size of your app’s
defaults database reaches 512 kilobytes. If your app continues to write to the defaults
database, the system terminates your app when the database reaches or exceeds 1 megabyte
in size. The system doesn’t post size exceeded notifications for other platforms.

The system posts this notification on your app’s main thread.

---

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)