Network Reachability in Swift 3
Almost every mobile app needs to connect to the Internet at some point to retrieve data from a host or service or upload new data to it. However, the Internet connection is not always available, and its availability can change at any time. To know the state of the system's current network and if a host or service is reachable through that network, we can use the SCNetworkReachability.
This API is part of Core Foundation, so it written in C. If you are using Swift this API is not really straightforward to use for many people.
Keep reading












