Created
November 26, 2017 10:55
-
-
Save mahmudahsan/25d11dad59913586f4f17ee4f0c151e9 to your computer and use it in GitHub Desktop.
This file contains 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 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