For example:
user clicks a button navigate to settings page in the device connect the wifi required and back to application.
For example:
user clicks a button navigate to settings page in the device connect the wifi required and back to application.
Please try.
UIApplication.shared.openURL(NSURL(string:"App-prefs:root=WIFI")! as URL)