Prerequsites
Refrences
Env.
- Xcode 9
- iOS11 above
- Swift4
Getting Started
1. Capabilities
2. Code
swift4
@IBAction func connectClicked(_ sender: Any) {
let config = NEHotspotConfiguration.init(ssid: "[name]", passphrase: "[password]", isWEP: false)
config.joinOnce = true
NEHotspotConfigurationManager.shared.apply(config) { (error) in
if (error != nil) {
print(error!)
}
}
}