I want to launch NightShift when I touch a button in my app.
I am aware that settings app can be opened by navigating to the settings URL
UIApplication.shared.open(URL(string:UIApplicationOpenSettingsURLString)!)
Is there a link to NightShift too?
If NightShift does not work,is there a way to display & brightness?
You can't navigate to any other page within the iOS Settings app from iOS 10 onwards.
Previously, there used be "prefs:" and "App Prefs:" which could navigate our app within the iOS settings app. But iOS 10 onwards, its a private API and can lead to app rejection by Apple.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.