Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
class Properties{
static let sharedInstance = Properties()
private let userDefaults:UserDefaults = UserDefaults()
var fontSize:Double = 10.0{
didSet{
userDefaults.setValue(fontSize, forKey: "FONT_SIZE")
userDefaults.synchronize()
print("Font Size Saved")
}
}
}
let properties = Properties.sharedInstance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment