Apple’s Network framework provides a number of useful classes for working with network data, including one specifically designed to monitor network accessibility:
NWPathMonitor. If you ever used Apple’s older Reachability system,
NWPathMonitor replaces it fully.... Continue Reading >>
MultipeerConnectivity framework is designed to allow ad hoc data transfer between devices that are in close proximity. The connection is started managed for you by iOS, but you're responsible for presenting useful interface to your users and for understanding the data that is being sent and received.... Continue Reading >>
URLSession is designed to make network transfers as easy as possible, and a great example of that is its
downloadTask()` method. This fetches the contents of a URL you specify, saves it to a local file, then calls a completion handler so you can manipulate the file – all in one.... Continue Reading >>
About the Swift Knowledge Base
This is part of the Swift Knowledge Base, a free, searchable collection of solutions for common iOS questions, all written for Swift 5.0.