How to open WIFI setting in Swift 3
<p>I want to open WIFI setting section from my iOS application, my code was working well before Swift 3 with iOS 9.2</p>

<pre><code>if let settingsURL = URL(string: AppSettingsWifiUrl) {
    UIApplication.shared.openURL(settingsURL)
}
</code></pre>

<p>But after updating it is not working with Xcode 8 + Swift 3 + iOS 10, can anybody help here? </p>