Result type
Purpose
The response from a network call provides us with data or error.
We recover fruits with the following model :
struct FruitsResponse: Decodable {
let results: [Fruit]
}
struct Fruit: Decodable, Equatable, Identifiable {
let id: Int
...
fredmillot.hashnode.dev2 min read