Last active
October 11, 2018 03:05
-
-
Save vialyx/f623708b1eece65ea5a34dd05bd46672 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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