Skip to content

Instantly share code, notes, and snippets.

@codebeaulieu
Created June 16, 2015 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codebeaulieu/359a29f57883805e32e3 to your computer and use it in GitHub Desktop.
Save codebeaulieu/359a29f57883805e32e3 to your computer and use it in GitHub Desktop.
setting swift
class Setting: NSObject {
var settingsLabel : String!
var switchState : Bool?
var timing : Int?
override init() {
super.init()
}
init(label: String, state: Bool ) {
settingsLabel = label
switchState = state as Bool
}
init(label: String, time: Int) {
settingsLabel = label
timing = time as Int
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment