Last active
May 4, 2020 07:20
-
-
Save Dimillian/df3c84f93d9d277162bd9d73f6055aab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct ItemResponse: Codable { | |
let total: Int | |
let results: [Item] | |
} | |
public struct Item: Codable, Equatable, Identifiable { | |
public var id: String { name } | |
public let name: String | |
public let image: String? | |
public let filename: String? | |
// More properties | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment