Created
June 25, 2020 12:12
-
-
Save arthurpalves/29dcb64ef89512baf6d578134db95174 to your computer and use it in GitHub Desktop.
This file contains 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
enum ProductType { | |
case main, secondary | |
} | |
struct Product: Identifiable { | |
let id: String | |
let name: String | |
let balance: Double | |
let iban: String | |
let type: ProductType | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment