---
title: sizeLimitExceededNotification
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/userdefaults/sizelimitexceedednotification
---

# sizeLimitExceededNotification

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

## Declaration

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

## Discussion

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.

## See Also

### Monitoring settings changes and issues

- [UserDefaults.DidChangeMessage](foundation/userdefaults/didchangemessage.md)
- [didChangeNotification](foundation/userdefaults/didchangenotification.md)
- [UserDefaults.SizeLimitExceededMessage](foundation/userdefaults/sizelimitexceededmessage.md)
