Created
December 12, 2019 12:47
-
-
Save alcamla/c71e1ec5bf49fdb5a8aa93c194549f3e to your computer and use it in GitHub Desktop.
Singleton Swift
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
final class Singleton { | |
static let shared = Singleton() | |
private init() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment