Created
October 11, 2018 03:05
-
-
Save vialyx/b18a43a3fd7f0da3ccd2cf7c9151341b 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 = .setup | |
var state: State = .on | |
// init(name: String, action: Action, state: State = .on) { | |
// self.name = name | |
// self.action = action | |
// self.state = state | |
// } | |
} | |
let setting = Setting() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment