DEV Community

Discussion on: Handling internet connection reachability in Swift

Collapse
 
hoangvu23108 profile image
Ken Lâm

Great article

But I found something, here is should stopNotifier() instead of startNotifier()

 static func stopNotifier() -> Void {
            do {
                // Stop the network status notifier
                try (NetworkManager.sharedInstance.reachability).startNotifier()
            } catch {
                print("Error stopping notifier")
            }
        }