I setting UIScreen.main.brightness = 1.0 at viewDidLoad.
But print in console value of UIScreen.main.brightness is 0.9483038187026978.
Please help me. I not good English , so sorry
I setting UIScreen.main.brightness = 1.0 at viewDidLoad.
But print in console value of UIScreen.main.brightness is 0.9483038187026978.
Please help me. I not good English , so sorry
Copyright © 2021 Jogjafile Inc.
You can use SceneDelegate as described in the following article:
https://medium.com/@arikisintown/how-to-create-an-ios-app-that-takes-secret-photos-while-the-iphone-screen-seems-to-be-turned-off-7081d110309e
--
From the article:
We will add a separate class dedicated to controlling the screen brightness:
We will call Dim when the app becomes active and call UnDim when the app is not active. Edit the file SceneDelegate.swift and add the following: