Post

Replies

Boosts

Views

Activity

How can I make request to an API and then create a view in SwiftUI?
Hello everyone 👋🏻 I’m new to SwiftUI and I’ve been trying with no luck to create a view in SwiftUI with data I’ve get from an API request. I have defined the structure of the data with Codable, but when I try to JSONDecode(), I can’t access the data from the URLSession. Can someone help me a little bit? Or tell me where I could find a tutorial that is useful in my case? Thank you all! Stay safe!
3
0
600
Aug ’20