I have following code part of Philips Hue SDK in Objective C (imported with bridging header)
[self.bridgeSearch startSearchWithCompletionHandler:^(NSDictionary *bridgesFound) {
// do something
}];
And I don't no, how to access this function in Swift.
I tried following (suggestion of Xcode 6)
self.bridgeSearch?.startSearchWithCompletionHandler({ (bridgesFound:NSDictionary) -> Void in
// do something
})
But compiler brings following error:
'[NSObject : AnyObject]!' is not a subtype of 'NSDictionary'