How to use NetworkReachabilityManager in Alamofire
NetworkManager Class class NetworkManager { //shared instance static let shared = NetworkManager() let reachabilityManager = Alamofire.NetworkReachabilityManager(host: “www.google.com”) func startNetworkReachabilityObserver() { reachabilityManager?.listener = { status in switch status { case .notReachable: print(“The network is not reachable”) case .unknown : print(“It is unknown whether the network is reachable”) case .reachable(.ethernetOrWiFi): print(“The network is reachable over the WiFi … Read more