Created
October 2, 2019 14:18
-
-
Save highthem/2306909636a0d5175b6933208ce19dab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
extension UserDefaults { | |
var userID: String? { | |
get { | |
return string(forKey: #function) | |
} | |
set { | |
set(newValue, forKey: #function) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment