When I put this code into a new iOS app test project, Xcode gives the following error:
…/ViewController.swift:17:33: error: incorrect argument label in call (have 'configuration:delegate:queue:', expected 'configuration:delegate:delegateQueue:')
var session = URLSession(configuration: configuration, delegate: self, queue: nil)
^ ~~~~~
delegateQueue
That seems pretty self explanatory and, if not, Xcode gives you a fix-it to make the change.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"