Created
May 17, 2016 15:53
-
-
Save Appletone/9300ef0a701b465a89880fdf58374f1d to your computer and use it in GitHub Desktop.
Swift Singleton
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
class MyManager { | |
private static let sharedInstance = MyManager() | |
class var sharedManager : MyManager { | |
return sharedInstance | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment