UserDefaults.SizeLimitExceededMessage
A message the system sends when the size of the data in the defaults database exceeds the maximum.
Declaration
struct SizeLimitExceededMessageOverview
In tvOS, the system posts this message 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 messages for platforms other than tvOS. The system posts this message on your app’s main thread.
Observe this message with the identifier sizeLimitExceeded, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is UserDefaults.
This message interoperates with the notification sizeLimitExceededNotification. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.