Created
January 20, 2019 04:57
-
-
Save shishirthedev/d73bf867362d85901c2e9d0a68752561 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Alamofire | |
class Connectivity { | |
class var isConnectedToInternet: Bool { | |
return NetworkReachabilityManager()!.isReachable | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment