let url = NSURL(string: "app-settings:root=Privacy&path=LOCATION")! as URL UIApplication.shared.open(url, options: [:], completionHandler: nil)
It works great for me, iOS11 on both the iPhone device and the simulator.
"App-Prefs:" will change to "app-settings:", then it will work.
lam kai man
source share