Skip to content

Instantly share code, notes, and snippets.

@vialyx
Last active October 11, 2018 03:05
Show Gist options
  • Save vialyx/f623708b1eece65ea5a34dd05bd46672 to your computer and use it in GitHub Desktop.
Save vialyx/f623708b1eece65ea5a34dd05bd46672 to your computer and use it in GitHub Desktop.
class Setting: NSObject {
enum State {
case off, on
}
enum Action {
case setup, open
}
var name: String
var action: Action
var state: State
init(name: String, action: Action, state: State = .on) {
self.name = name
self.action = action
self.state = state
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment