I want to open WIFI setting section from my iOS application, my code was working well before Swift 3 with iOS 9.2
if let settingsURL = URL(string: AppSetting
Use the following for iOS 10 and above:
if let url = URL(string:"App-Prefs:root=Settings&path=General") { UIApplication.shared.openURL(url) }