Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use The .task SwiftUI Modifier To Perform Async Data Tasks

Use The .task SwiftUI Modifier To Perform Async Data Tasks

Daily Coding Tip 080

Millie Sturgeon's avatar
Millie Sturgeon
May 05, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use The .task SwiftUI Modifier To Perform Async Data Tasks
Share
Image by Лариса Мозговая from Pixabay

I’m going to be using the API for the webcomic XKCD, mainly because it’s an API that doesn’t require any authentication.

The response gives metadata about the web comic, as well as a URL which can be used to download an image of the comic itself.

Here’s a Codable structure that matches the structure of the typical ser…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share