Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created October 11, 2018 03:05
Show Gist options
  • Save vialyx/b18a43a3fd7f0da3ccd2cf7c9151341b to your computer and use it in GitHub Desktop.
Save vialyx/b18a43a3fd7f0da3ccd2cf7c9151341b 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 = .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