Member-only story

SwiftUI Tutorial — How to use a ProgressView with URLSession

Ale Patrón
3 min readMar 13, 2022

--

Note: This tutorial is also available in video form on YouTube.

In this tutorial, we are going to use Swift and SwiftUI to build a simple app that downloads an image from Unsplash and shows the download progress using a ProgressView.

A ProgressView is a view that shows the progress towards the completion of a task. We’re going to start by creating a new Xcode project that uses SwiftUI for the interface.

In the ContentView.swift file, we are going to add a few variables to keep track of the download session and progress.

--

--

No responses yet