A simple class to check for internet connection availability in Swift. Works for both 3G and WiFi connections.
CocoaPods (< v0.36)
- Chris Danielson is the author of the original code written in Objective-C.
- Martin R from StackOverflow helped me immensely in converting C code to Swift.