Flashcard
URLSession Requests & Loading/Error States
How to perform REST requests with URLSession and model loading, success, and error states in SwiftUI.
Question
In iOS, how do you fetch a REST resource and represent loading and error states cleanly?
Click to reveal answer