didChangeNotification
Posted when the current process changes the value of a setting.
Declaration
class let didChangeNotification: NSNotification.NameMentioned in
Discussion
When you write a new value to a setting, or remove an existing value, the system generates this notification to alert you that your app’s settings changed. Use this notification in other parts of your app to incorporate updated settings. The system posts this notification on the same thread you used to make the change.
If a different process changes your app’s settings, the system doesn’t generate this notification. To detect changes made by another process, register a key-value observer on the UserDefaults object. Key-value observing reports all updates to setting values, regardless of which process made the change.