- I want to open iPhone Settings Screen time page inside my iOS App.
- When I try to open the 'Screen Time' settings, it takes me to the iPhone's settings screen instead of opening it within my app itself.
I have followed below code -
if let url = URL(string: "App-Prefs:root=SCREEN_TIME") {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}