22

I have looked a bit in the iOS 9.3 API Diffs, as well as searching the developer website and forums and did not see any references.

Is it possible to determine if Night Shift is active? I would assume that applications which require true color tone would want to alert a user if the screen colors were being augmented by the system.

Erik Kaplun
  • 37,128
  • 15
  • 99
  • 111
atommclain
  • 615
  • 5
  • 13
  • 1
    I imagined this would be in UIScreen with the brightness settings but it doesn't look like it's there. Interesting, I'll keep digging. – JAL Mar 22 '16 at 20:39
  • 3
    I've made some progress on this. There appears to be a new class in the private CoreBrightness framework called [`NightModeControl`](https://github.com/nst/iOS-Runtime-Headers/blob/master/PrivateFrameworks/CoreBrightness.framework/NightModeControl.h) which controls Night Shift. I haven't found a way to hook into any of the CoreBrightness classes at runtime. – JAL Mar 31 '16 at 20:59

1 Answers1

1

Apple does not provide an API for accessing the users Night Shift setting.

Dash
  • 17,188
  • 6
  • 48
  • 49