I've been trying to reset the user's default device brightness in the app delegate method: applicationDidEnterBackground
by using this code:
UIScreen.mainScreen().brightness = screenBrightness!
The code gets called but the brightness is not reset. Anyone know how to get this working using Swift (not obj-c)