Network Reachability With Swift

With iOS 11, Apple introduced the property waitsForConnectivity in the URLSessionConfiguration to wait an internet connection before performing any network activity with URLSession. This means that, with this property set to true we don’t need to bother ourself checking manually the device’s connection and waiting a valid internet connection. URLSession will do it under the hood.


Want to receive more content like this in your inbox?