Skip to content

Instantly share code, notes, and snippets.

@alcamla
Created December 12, 2019 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alcamla/c71e1ec5bf49fdb5a8aa93c194549f3e to your computer and use it in GitHub Desktop.
Save alcamla/c71e1ec5bf49fdb5a8aa93c194549f3e to your computer and use it in GitHub Desktop.
Singleton Swift
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