|
Sorry for the huge amount of code, but I went through one of Paul's tutorials where he used dataTaskPublisher. I don't understand how to translate to Example 2. Paul's example has one json record, the other has 10. Anyways, I appreciate any assistance anyone can provide. Paul Example:
Example 2
|
|
Using SwiftUI I have come up with something like this for example 2 In this example however I have created a class called 'NetworkCall' hence the ObservableObject and self.networkcall.fetch changes ContentView:
Networking
|
|
I got the same but using Paul's format.
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.