Using Swift in an iOS 10 app, we can open the iPhone WiFi settings using this code:
let url = NSURL(string: "App-Prefs:root=WIFI")!
UIApplication.sharedApplication().openURL(url, options: [:], completionHandler: nil)
Is this allowed by Apple? I haven't been able to find a clear answer online. Please offer a link to Apple documentation if you can.