How to use SCNetworkReachability in Swift
(This answer was extended repeatedly due to changes in the Swift language, which made it a bit confusing. I have now rewritten it and removed everything which refers to Swift 1.x. The older code can be found in the edit history if somebody needs it.) This is how you would do it in Swift 2.0 … Read more