Documentation Archive Developer
Search

CoreWLAN Changes for Swift

CoreWLAN

Removed CWCipherKeyFlags.init(_: UInt)
Modified CWChannel
Declaration
From
class CWChannel : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var channelNumber: Int { get }
    var channelWidth: CWChannelWidth { get }
    var channelBand: CWChannelBand { get }
    func isEqualToChannel(_ channel: CWChannel!) -> Bool
}
To
class CWChannel : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var channelNumber: Int { get }
    var channelWidth: CWChannelWidth { get }
    var channelBand: CWChannelBand { get }
    func isEqualToChannel(_ channel: CWChannel) -> Bool
}

Declaration
From
func isEqualToChannel(_ channel: CWChannel!) -> Bool
To
func isEqualToChannel(_ channel: CWChannel) -> Bool

Raw Value Type
From--
ToInt

Raw Value Type
From--
ToInt

DeclarationProtocols
From
struct CWCipherKeyFlags : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: CWCipherKeyFlags { get }
    static var Unicast: CWCipherKeyFlags { get }
    static var Multicast: CWCipherKeyFlags { get }
    static var Tx: CWCipherKeyFlags { get }
    static var Rx: CWCipherKeyFlags { get }
}
RawOptionSetType
To
struct CWCipherKeyFlags : OptionSetType {
    init(rawValue rawValue: UInt)
    static var None: CWCipherKeyFlags { get }
    static var Unicast: CWCipherKeyFlags { get }
    static var Multicast: CWCipherKeyFlags { get }
    static var Tx: CWCipherKeyFlags { get }
    static var Rx: CWCipherKeyFlags { get }
}
OptionSetType

Declaration
From
class CWConfiguration : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
    @NSCopying var networkProfiles: NSOrderedSet! { get }
    var requireAdministratorForAssociation: Bool { get }
    var requireAdministratorForPower: Bool { get }
    var requireAdministratorForIBSSMode: Bool { get }
    var rememberJoinedNetworks: Bool { get }
    convenience init!()
    class func configuration() -> Self!
    init!()
    init!(configuration configuration: CWConfiguration!)
    class func configurationWithConfiguration(_ configuration: CWConfiguration!) -> Self!
    func isEqualToConfiguration(_ configuration: CWConfiguration!) -> Bool
}
To
class CWConfiguration : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
    @NSCopying var networkProfiles: NSOrderedSet { get }
    var requireAdministratorForAssociation: Bool { get }
    var requireAdministratorForPower: Bool { get }
    var requireAdministratorForIBSSMode: Bool { get }
    var rememberJoinedNetworks: Bool { get }
    convenience init()
    class func configuration() -> Self
    init()
    init(configuration configuration: CWConfiguration)
    class func configurationWithConfiguration(_ configuration: CWConfiguration) -> Self
    func isEqualToConfiguration(_ configuration: CWConfiguration) -> Bool
}

Declaration
From
init!()
To
init()

Declaration
From
init!(configuration configuration: CWConfiguration!)
To
init(configuration configuration: CWConfiguration)

Declaration
From
func isEqualToConfiguration(_ configuration: CWConfiguration!) -> Bool
To
func isEqualToConfiguration(_ configuration: CWConfiguration) -> Bool

Declaration
From
@NSCopying var networkProfiles: NSOrderedSet! { get }
To
@NSCopying var networkProfiles: NSOrderedSet { get }

Modified CWErr [enum]
Raw Value Type
From--
ToInt

Declaration
From
protocol CWEventDelegate {
    optional func clientConnectionInterrupted()
    optional func clientConnectionInvalidated()
    optional func powerStateDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func ssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func bssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func countryCodeDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func linkDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func linkQualityDidChangeForWiFiInterfaceWithName(_ interfaceName: String!, rssi rssi: Int, transmitRate transmitRate: Double)
    optional func modeDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
    optional func scanCacheUpdatedForWiFiInterfaceWithName(_ interfaceName: String!)
}
To
protocol CWEventDelegate {
    optional func clientConnectionInterrupted()
    optional func clientConnectionInvalidated()
    optional func powerStateDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func ssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func bssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func countryCodeDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func linkDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func linkQualityDidChangeForWiFiInterfaceWithName(_ interfaceName: String, rssi rssi: Int, transmitRate transmitRate: Double)
    optional func modeDidChangeForWiFiInterfaceWithName(_ interfaceName: String)
    optional func scanCacheUpdatedForWiFiInterfaceWithName(_ interfaceName: String)
}

Declaration
From
optional func bssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func bssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func countryCodeDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func countryCodeDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func linkDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func linkDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func linkQualityDidChangeForWiFiInterfaceWithName(_ interfaceName: String!, rssi rssi: Int, transmitRate transmitRate: Double)
To
optional func linkQualityDidChangeForWiFiInterfaceWithName(_ interfaceName: String, rssi rssi: Int, transmitRate transmitRate: Double)

Declaration
From
optional func modeDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func modeDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func powerStateDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func powerStateDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func scanCacheUpdatedForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func scanCacheUpdatedForWiFiInterfaceWithName(_ interfaceName: String)

Declaration
From
optional func ssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String!)
To
optional func ssidDidChangeForWiFiInterfaceWithName(_ interfaceName: String)

Raw Value Type
From--
ToInt

Raw Value Type
From--
ToInt

Modified CWInterface
Declaration
From
class CWInterface : NSObject {
    var interfaceName: String! { get }
    func powerOn() -> Bool
    func supportedWLANChannels() -> Set<NSObject>!
    func wlanChannel() -> CWChannel!
    func activePHYMode() -> CWPHYMode
    func ssid() -> String!
    func ssidData() -> NSData!
    func bssid() -> String!
    func rssiValue() -> Int
    func noiseMeasurement() -> Int
    func security() -> CWSecurity
    func transmitRate() -> Double
    func countryCode() -> String!
    func interfaceMode() -> CWInterfaceMode
    func transmitPower() -> Int
    func hardwareAddress() -> String!
    func serviceActive() -> Bool
    func cachedScanResults() -> Set<NSObject>!
    func configuration() -> CWConfiguration!
    class func interfaceNames() -> Set<NSObject>!
    convenience init!()
    class func interface() -> Self!
    convenience init!(name name: String!)
    class func interfaceWithName(_ name: String!) -> Self!
    init!(interfaceName name: String!)
    func setPower(_ power: Bool, error error: NSErrorPointer) -> Bool
    func setWLANChannel(_ channel: CWChannel!, error error: NSErrorPointer) -> Bool
    func setPairwiseMasterKey(_ key: NSData!, error error: NSErrorPointer) -> Bool
    func setWEPKey(_ key: NSData!, flags flags: CWCipherKeyFlags, index index: Int, error error: NSErrorPointer) -> Bool
    func scanForNetworksWithSSID(_ ssid: NSData!, error error: NSErrorPointer) -> Set<NSObject>!
    func scanForNetworksWithName(_ networkName: String!, error error: NSErrorPointer) -> Set<NSObject>!
    func associateToNetwork(_ network: CWNetwork!, password password: String!, error error: NSErrorPointer) -> Bool
    func disassociate()
    func associateToEnterpriseNetwork(_ network: CWNetwork!, identity identity: SecIdentity!, username username: String!, password password: String!, error error: NSErrorPointer) -> Bool
    func startIBSSModeWithSSID(_ ssidData: NSData!, security security: CWIBSSModeSecurity, channel channel: Int, password password: String!, error error: NSErrorPointer) -> Bool
    func commitConfiguration(_ configuration: CWConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
}
To
class CWInterface : NSObject {
    var interfaceName: String? { get }
    func powerOn() -> Bool
    func supportedWLANChannels() -> Set<CWChannel>?
    func wlanChannel() -> CWChannel?
    func activePHYMode() -> CWPHYMode
    func ssid() -> String?
    func ssidData() -> NSData?
    func bssid() -> String?
    func rssiValue() -> Int
    func noiseMeasurement() -> Int
    func security() -> CWSecurity
    func transmitRate() -> Double
    func countryCode() -> String?
    func interfaceMode() -> CWInterfaceMode
    func transmitPower() -> Int
    func hardwareAddress() -> String?
    func serviceActive() -> Bool
    func cachedScanResults() -> Set<CWNetwork>?
    func configuration() -> CWConfiguration?
    class func interfaceNames() -> Set<String>?
    convenience init()
    class func interface() -> Self
    convenience init(name name: String)
    class func interfaceWithName(_ name: String) -> Self
    init(interfaceName name: String)
    func setPower(_ power: Bool) throws
    func setWLANChannel(_ channel: CWChannel) throws
    func setPairwiseMasterKey(_ key: NSData?) throws
    func setWEPKey(_ key: NSData?, flags flags: CWCipherKeyFlags, index index: Int) throws
    func scanForNetworksWithSSID(_ ssid: NSData?) throws -> Set<CWNetwork>
    func scanForNetworksWithName(_ networkName: String?) throws -> Set<CWNetwork>
    func associateToNetwork(_ network: CWNetwork, password password: String?) throws
    func disassociate()
    func associateToEnterpriseNetwork(_ network: CWNetwork, identity identity: SecIdentity?, username username: String?, password password: String?) throws
    func startIBSSModeWithSSID(_ ssidData: NSData, security security: CWIBSSModeSecurity, channel channel: Int, password password: String?) throws
    func commitConfiguration(_ configuration: CWConfiguration, authorization authorization: SFAuthorization?) throws
}

Declaration
From
func associateToEnterpriseNetwork(_ network: CWNetwork!, identity identity: SecIdentity!, username username: String!, password password: String!, error error: NSErrorPointer) -> Bool
To
func associateToEnterpriseNetwork(_ network: CWNetwork, identity identity: SecIdentity?, username username: String?, password password: String?) throws

Declaration
From
func associateToNetwork(_ network: CWNetwork!, password password: String!, error error: NSErrorPointer) -> Bool
To
func associateToNetwork(_ network: CWNetwork, password password: String?) throws

Declaration
From
func bssid() -> String!
To
func bssid() -> String?

Declaration
From
func cachedScanResults() -> Set<NSObject>!
To
func cachedScanResults() -> Set<CWNetwork>?

Declaration
From
func commitConfiguration(_ configuration: CWConfiguration!, authorization authorization: SFAuthorization!, error error: NSErrorPointer) -> Bool
To
func commitConfiguration(_ configuration: CWConfiguration, authorization authorization: SFAuthorization?) throws

Declaration
From
func configuration() -> CWConfiguration!
To
func configuration() -> CWConfiguration?

Declaration
From
func countryCode() -> String!
To
func countryCode() -> String?

Declaration
From
func hardwareAddress() -> String!
To
func hardwareAddress() -> String?

Declaration
From
init!(interfaceName name: String!)
To
init(interfaceName name: String)

Declaration
From
convenience init!(name name: String!)
To
convenience init(name name: String)

Declaration
From
var interfaceName: String! { get }
To
var interfaceName: String? { get }

Declaration
From
class func interfaceNames() -> Set<NSObject>!
To
class func interfaceNames() -> Set<String>?

Declaration
From
func scanForNetworksWithName(_ networkName: String!, error error: NSErrorPointer) -> Set<NSObject>!
To
func scanForNetworksWithName(_ networkName: String?) throws -> Set<CWNetwork>

Declaration
From
func scanForNetworksWithSSID(_ ssid: NSData!, error error: NSErrorPointer) -> Set<NSObject>!
To
func scanForNetworksWithSSID(_ ssid: NSData?) throws -> Set<CWNetwork>

Declaration
From
func setPairwiseMasterKey(_ key: NSData!, error error: NSErrorPointer) -> Bool
To
func setPairwiseMasterKey(_ key: NSData?) throws

Declaration
From
func setPower(_ power: Bool, error error: NSErrorPointer) -> Bool
To
func setPower(_ power: Bool) throws

Declaration
From
func setWEPKey(_ key: NSData!, flags flags: CWCipherKeyFlags, index index: Int, error error: NSErrorPointer) -> Bool
To
func setWEPKey(_ key: NSData?, flags flags: CWCipherKeyFlags, index index: Int) throws

Declaration
From
func setWLANChannel(_ channel: CWChannel!, error error: NSErrorPointer) -> Bool
To
func setWLANChannel(_ channel: CWChannel) throws

Declaration
From
func ssid() -> String!
To
func ssid() -> String?

Declaration
From
func ssidData() -> NSData!
To
func ssidData() -> NSData?

Declaration
From
func startIBSSModeWithSSID(_ ssidData: NSData!, security security: CWIBSSModeSecurity, channel channel: Int, password password: String!, error error: NSErrorPointer) -> Bool
To
func startIBSSModeWithSSID(_ ssidData: NSData, security security: CWIBSSModeSecurity, channel channel: Int, password password: String?) throws

Declaration
From
func supportedWLANChannels() -> Set<NSObject>!
To
func supportedWLANChannels() -> Set<CWChannel>?

Declaration
From
func wlanChannel() -> CWChannel!
To
func wlanChannel() -> CWChannel?

Raw Value Type
From--
ToInt

Raw Value Type
From--
ToInt

Declaration
From
class CWMutableConfiguration : CWConfiguration {
    @NSCopying var networkProfiles: NSOrderedSet!
    var requireAdministratorForAssociation: Bool
    var requireAdministratorForPower: Bool
    var requireAdministratorForIBSSMode: Bool
    var rememberJoinedNetworks: Bool
}
To
class CWMutableConfiguration : CWConfiguration {
    @NSCopying var networkProfiles: NSOrderedSet
    var requireAdministratorForAssociation: Bool
    var requireAdministratorForPower: Bool
    var requireAdministratorForIBSSMode: Bool
    var rememberJoinedNetworks: Bool
}

Declaration
From
@NSCopying var networkProfiles: NSOrderedSet!
To
@NSCopying var networkProfiles: NSOrderedSet

Declaration
From
class CWMutableNetworkProfile : CWNetworkProfile {
    @NSCopying var ssidData: NSData!
    var security: CWSecurity
}
To
class CWMutableNetworkProfile : CWNetworkProfile {
    @NSCopying var ssidData: NSData
    var security: CWSecurity
}

Declaration
From
@NSCopying var ssidData: NSData!
To
@NSCopying var ssidData: NSData

Modified CWNetwork
Declaration
From
class CWNetwork : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var ssid: String! { get }
    var ssidData: NSData! { get }
    var bssid: String! { get }
    var wlanChannel: CWChannel! { get }
    var rssiValue: Int { get }
    var noiseMeasurement: Int { get }
    var informationElementData: NSData! { get }
    var countryCode: String! { get }
    var beaconInterval: Int { get }
    var ibss: Bool { get }
    func isEqualToNetwork(_ network: CWNetwork!) -> Bool
    func supportsSecurity(_ security: CWSecurity) -> Bool
    func supportsPHYMode(_ phyMode: CWPHYMode) -> Bool
}
To
class CWNetwork : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var ssid: String? { get }
    var ssidData: NSData? { get }
    var bssid: String? { get }
    var wlanChannel: CWChannel { get }
    var rssiValue: Int { get }
    var noiseMeasurement: Int { get }
    var informationElementData: NSData? { get }
    var countryCode: String? { get }
    var beaconInterval: Int { get }
    var ibss: Bool { get }
    func isEqualToNetwork(_ network: CWNetwork) -> Bool
    func supportsSecurity(_ security: CWSecurity) -> Bool
    func supportsPHYMode(_ phyMode: CWPHYMode) -> Bool
}

Declaration
From
var bssid: String! { get }
To
var bssid: String? { get }

Declaration
From
var countryCode: String! { get }
To
var countryCode: String? { get }

Declaration
From
var informationElementData: NSData! { get }
To
var informationElementData: NSData? { get }

Declaration
From
func isEqualToNetwork(_ network: CWNetwork!) -> Bool
To
func isEqualToNetwork(_ network: CWNetwork) -> Bool

Declaration
From
var ssid: String! { get }
To
var ssid: String? { get }

Declaration
From
var ssidData: NSData! { get }
To
var ssidData: NSData? { get }

Declaration
From
var wlanChannel: CWChannel! { get }
To
var wlanChannel: CWChannel { get }

Declaration
From
class CWNetworkProfile : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
    var ssid: String! { get }
    @NSCopying var ssidData: NSData! { get }
    var security: CWSecurity { get }
    convenience init!()
    class func networkProfile() -> Self!
    init!()
    init!(networkProfile networkProfile: CWNetworkProfile!)
    class func networkProfileWithNetworkProfile(_ networkProfile: CWNetworkProfile!) -> Self!
    func isEqualToNetworkProfile(_ networkProfile: CWNetworkProfile!) -> Bool
}
To
class CWNetworkProfile : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCoding {
    var ssid: String? { get }
    @NSCopying var ssidData: NSData? { get }
    var security: CWSecurity { get }
    convenience init()
    class func networkProfile() -> Self
    init()
    init(networkProfile networkProfile: CWNetworkProfile)
    class func networkProfileWithNetworkProfile(_ networkProfile: CWNetworkProfile) -> Self
    func isEqualToNetworkProfile(_ networkProfile: CWNetworkProfile) -> Bool
}

Declaration
From
init!()
To
init()

Declaration
From
init!(networkProfile networkProfile: CWNetworkProfile!)
To
init(networkProfile networkProfile: CWNetworkProfile)

Declaration
From
func isEqualToNetworkProfile(_ networkProfile: CWNetworkProfile!) -> Bool
To
func isEqualToNetworkProfile(_ networkProfile: CWNetworkProfile) -> Bool

Declaration
From
var ssid: String! { get }
To
var ssid: String? { get }

Declaration
From
@NSCopying var ssidData: NSData! { get }
To
@NSCopying var ssidData: NSData? { get }

Raw Value Type
From--
ToInt

Raw Value Type
From--
ToInt

Modified CWWiFiClient
Declaration
From
class CWWiFiClient : NSObject {
    weak var delegate: AnyObject!
    class func sharedWiFiClient() -> CWWiFiClient!
    init!()
    func interface() -> CWInterface!
    class func interfaceNames() -> [AnyObject]!
    func interfaceWithName(_ interfaceName: String!) -> CWInterface!
    func interfaces() -> [AnyObject]!
    func startMonitoringEventWithType(_ type: CWEventType, error error: NSErrorPointer) -> Bool
    func stopMonitoringEventWithType(_ type: CWEventType, error error: NSErrorPointer) -> Bool
    func stopMonitoringAllEventsAndReturnError(_ error: NSErrorPointer) -> Bool
}
To
class CWWiFiClient : NSObject {
    weak var delegate: AnyObject?
    class func sharedWiFiClient() -> CWWiFiClient
    init?()
    func interface() -> CWInterface?
    class func interfaceNames() -> [String]?
    func interfaceWithName(_ interfaceName: String?) -> CWInterface?
    func interfaces() -> [CWInterface]?
    func startMonitoringEventWithType(_ type: CWEventType) throws
    func stopMonitoringEventWithType(_ type: CWEventType) throws
    func stopMonitoringAllEvents() throws
}

Declaration
From
weak var delegate: AnyObject!
To
weak var delegate: AnyObject?

Declaration
From
init!()
To
init?()

Declaration
From
func interface() -> CWInterface!
To
func interface() -> CWInterface?

Declaration
From
class func interfaceNames() -> [AnyObject]!
To
class func interfaceNames() -> [String]?

Declaration
From
func interfaces() -> [AnyObject]!
To
func interfaces() -> [CWInterface]?

Declaration
From
func interfaceWithName(_ interfaceName: String!) -> CWInterface!
To
func interfaceWithName(_ interfaceName: String?) -> CWInterface?

Declaration
From
class func sharedWiFiClient() -> CWWiFiClient!
To
class func sharedWiFiClient() -> CWWiFiClient

Declaration
From
func startMonitoringEventWithType(_ type: CWEventType, error error: NSErrorPointer) -> Bool
To
func startMonitoringEventWithType(_ type: CWEventType) throws

Declaration
From
func stopMonitoringAllEventsAndReturnError(_ error: NSErrorPointer) -> Bool
To
func stopMonitoringAllEvents() throws

Declaration
From
func stopMonitoringEventWithType(_ type: CWEventType, error error: NSErrorPointer) -> Bool
To
func stopMonitoringEventWithType(_ type: CWEventType) throws

Declaration
From
func CWKeychainCopyWiFiEAPIdentity(_ domain: CWKeychainDomain, _ ssid: NSData!, _ identity: UnsafeMutablePointer<Unmanaged<SecIdentity>?>) -> OSStatus
To
func CWKeychainCopyWiFiEAPIdentity(_ domain: CWKeychainDomain, _ ssid: NSData, _ identity: UnsafeMutablePointer<Unmanaged<SecIdentity>?>) -> OSStatus

Declaration
From
func CWKeychainDeleteWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData!) -> OSStatus
To
func CWKeychainDeleteWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData) -> OSStatus

Declaration
From
func CWKeychainDeleteWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData!) -> OSStatus
To
func CWKeychainDeleteWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData) -> OSStatus

Declaration
From
func CWKeychainFindWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData!, _ username: AutoreleasingUnsafeMutablePointer<NSString?>, _ password: AutoreleasingUnsafeMutablePointer<NSString?>) -> OSStatus
To
func CWKeychainFindWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData, _ username: AutoreleasingUnsafeMutablePointer<NSString?>, _ password: AutoreleasingUnsafeMutablePointer<NSString?>) -> OSStatus

Declaration
From
func CWKeychainFindWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData!, _ password: AutoreleasingUnsafeMutablePointer<NSString?>) -> OSStatus
To
func CWKeychainFindWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData, _ password: AutoreleasingUnsafeMutablePointer<NSString?>) -> OSStatus

Declaration
From
func CWKeychainSetWiFiEAPIdentity(_ domain: CWKeychainDomain, _ ssid: NSData!, _ identity: SecIdentity!) -> OSStatus
To
func CWKeychainSetWiFiEAPIdentity(_ domain: CWKeychainDomain, _ ssid: NSData, _ identity: SecIdentity?) -> OSStatus

Declaration
From
func CWKeychainSetWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData!, _ username: String!, _ password: String!) -> OSStatus
To
func CWKeychainSetWiFiEAPUsernameAndPassword(_ domain: CWKeychainDomain, _ ssid: NSData, _ username: String?, _ password: String?) -> OSStatus

Declaration
From
func CWKeychainSetWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData!, _ password: String!) -> OSStatus
To
func CWKeychainSetWiFiPassword(_ domain: CWKeychainDomain, _ ssid: NSData, _ password: String) -> OSStatus

Declaration
From
func CWMergeNetworks(_ networks: Set<NSObject>!) -> Set<NSObject>!
To
func CWMergeNetworks(_ networks: Set<CWNetwork>) -> Set<CWNetwork>