Skip to content

Instantly share code, notes, and snippets.

@kgn
Last active August 19, 2019 03:41
Show Gist options
  • Save kgn/b32956a1cacbdfd0aec8ec9d6be7b126 to your computer and use it in GitHub Desktop.
Save kgn/b32956a1cacbdfd0aec8ec9d6be7b126 to your computer and use it in GitHub Desktop.
enum Food: String {
case beef = "Beef"
case chicken = "Chicken"
case vegitarian = "Vegitarian"
case kids = "Kids"
}
struct Person {
let name: String
let food: Food
init(_ name: String, _ food: Food) {
self.name = name
self.food = food
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment