mirror of
https://github.com/tappollo/OSCKit.git
synced 2026-04-29 18:55:43 +08:00
Add back current SSID API
This commit is contained in:
@@ -58,7 +58,7 @@ final class SSID: NSObject {
|
||||
}
|
||||
}
|
||||
|
||||
private var current: String? {
|
||||
var current: String? {
|
||||
if let interfaces = CNCopySupportedInterfaces() {
|
||||
for i in 0..<CFArrayGetCount(interfaces) {
|
||||
let interfaceName: UnsafeRawPointer = CFArrayGetValueAtIndex(interfaces, i)
|
||||
@@ -80,4 +80,8 @@ extension OSCKit {
|
||||
return SSID.shared.subscribe(onChange: changed)
|
||||
}
|
||||
|
||||
public var currentSSID: String? {
|
||||
return SSID.shared.current
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user