ahmedattia213
5/15/2020 - 2:24 AM

checkConnection

static func checkConnection() -> Bool {

        guard let status = Network.reachability?.status else { return false}
        switch status {
        case .unreachable:
            return false
        default :
            return true
        }
    }