I\'m using a tuple to store something like this.
var accessLavels: (hasInventoryAccess: Bool, hasPayrolAccess: Bool)
accessLavels = (hasInventoryAccess: true
I'ts an year old question but still:
let accesLvl : [String:AnyObject] = ["hasInventoryAcces":true, "hasPayrolAccess":false]
NSUserDefaults.standardUserDefaults().setObject(accesLvl, forKey: "accesLevel")
In case you save only bools, let accesLvl : [String:Bool]
is a better option.
In case I don't get something (I'm fairly new to Swift and programming altogether), what would be the benefit of using a "tuple" over a Dictionary, or even a struct