I'm trying to implement reachability in Swift, I have it running in Swift but something is different. I can't seem to be able to do the block syntax that works in objc-c for checking the network connection:
Reachable.reachableBlock = ^(Reachability*reach)
{
NSLog(@"connection reached");
};
I can't get this to work in swift, any ideas? Thanks.