I use some settings from a settings.bundle in my iOS App. I would like to monitor changes from these settings. I already know I can do this by using NotificationCenter.default.addObserver(self, selector: #selector(onSettingsChanged), name: UserDefaults.didChangeNotification, object: nil)
.
However, this only informs me that a setting has changed but does not tell me which one? Is there a way to register an observer only for a specific setting, or to provide the changed setting as parameter to the observer?