Created
July 21, 2015 09:26
-
-
Save jk/b21f6a7003affd82bd44 to your computer and use it in GitHub Desktop.
How to write a correct singleton in Swift. Source: http://krakendev.io/blog/the-right-way-to-write-a-singleton
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 TheOneAndOnlyKraken { | |
static let sharedInstance = TheOneAndOnlyKraken() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment