The object of the notification brightnessDidChangeNotification
used for the detection of the brightness of the screen is not working in iOS 16.
When putting a hand on the Ambian light sensor and removing it, don’t receive a notification of the change in light of the screen in iOS 16.
On the contrary, changing the level of brightness of the screen from the settings of the device triggers the notification.