Network Reachability With Swift

marcosantadev.com

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.

Read more...
Linkedin

Want to receive more content like this in your inbox?