Start a Project

Add observer to internet connection in Swift

Add observer to internet connection

Suppose you want to check that your internet connectivity changes when it turns on /off in your application.You have to add the observer to your application of checking that it tells you that your internet connection is on or off. Follow this code to check

This will start monitoring internet connection . to check your connection follow :-

 

Exit mobile version