Skip to content

Instantly share code, notes, and snippets.

@RPallas92
Created December 30, 2017 15:27
Show Gist options
  • Save RPallas92/328da1b40b8c34ec301b7ee7b2d32a65 to your computer and use it in GitHub Desktop.
Save RPallas92/328da1b40b8c34ec301b7ee7b2d32a65 to your computer and use it in GitHub Desktop.
struct Todo {
var text: String
var completed: Bool
}
enum VisibilityFilter {
case showCompleted
case showAll
}
struct State {
var todos: [Todo]
var visibilityFilter: VisibilityFilter
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment