Question : swiftUI parse json from url
Answered by : worrisome-worm-hnhxq4lmvqfw
struct Response: Codable { var results: [Result]
}
struct Result: Codable { var trackId: Int var trackName: String var collectionName: String
}
Source : https://www.hackingwithswift.com/books/ios-swiftui/sending-and-receiving-codable-data-with-urlsession-and-swiftui | Last Update : Sun, 28 Feb 21