Download Progress With Awaited Network Tasks

Available in iOS 15, URLSession's bytes(from:delegate:) method retrieves the contents of a given URL and delivers an asynchronous sequence of bytes. In this post, Soroush Khanlou guides how to best use this flexible new API, demonstrating how it can be used to implement download progress feedback.