The following code works fine on iOS 9, see this post. But it doesn\'t work on iOS 10. How to open WIFI settings programmatically on iOS 10
[[UIApplication s
let url=URL(string: "App-Prefs:root=WIFI")
// you can change root as your requirements
if UIApplication.shared.canOpenURL(url!)
{
UIApplication.shared.open(url!, options: [:], completionHandler: {success in
})
}
else{
UIApplication.shared.open(url!, options: [:], completionHandler: {success in
})
}