Skip to content

Instantly share code, notes, and snippets.

@NunoAlexandre
Created March 25, 2019 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NunoAlexandre/43644efec05ddf2061299eeac55ca9e1 to your computer and use it in GitHub Desktop.
Save NunoAlexandre/43644efec05ddf2061299eeac55ca9e1 to your computer and use it in GitHub Desktop.
Stork Example Types
struct User {
let id: Int
let name: String
let email: String?
let country: Country?
let subscription: Subscription
let favouriteSongs: [Song]
}
enum Subscription: String {
case free
case bronze
case silver
case gold
}
enum Country: String {
case netherlands
case portugal
}
struct Song: Equatable {
let name: String
let band: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment