This is based on a post on my Substack, but I’ve expanded it into a working example.
I haven’t worked with Combine much, but I wanted an easy way to get data into my SwiftUI project without using the conventional URLRequest.dataTask
.
Instead of creating a Publisher
in my ObservableObject
, I decided to create an extension of URL
…
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.