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
extension Notification.Name{ | |
static let internetIsBack = Notification.Name(rawValue: "internetIsBack") | |
} | |
class ReachabilityManager:NSObject { | |
private var monitor: NWPathMonitor? | |
private var queue = DispatchQueue.global(qos: .background) | |
private var isConnected: Bool = false // To store the current network status | |
static let shared:ReachabilityManager = ReachabilityManager()// Singleton instance for global access |