import Foundation
import SystemConfiguration
for interface in SCNetworkInterfaceCopyAll() as NSArray {
if let name = SCNetworkInterfaceGetBSDName(interface as! SCNetworkInterface),
let type = SCNetworkInterfaceGetInterfaceType(interface as! SCNetworkInterface) {
print("Interface \(name) is of type \(type)")
}
}
can any one help me. I want to use SCNetworkInterface methods in my code. But i found this swift code. I am unable to understand this.especially syntax as!