Loading Images in iOS Without Dependencies
Matthew Liam Healy
20515

The sample code won’t work unless you start the data task.

After you create the task, you must start it by calling its resume() method.

— From Apple’s doc dataTask(with:completionHandler:)