Skip to content

Instantly share code, notes, and snippets.

@alexj70
Created April 27, 2017 21:21
Show Gist options
  • Save alexj70/c1aae2d838df7ae508526053cee7c943 to your computer and use it in GitHub Desktop.
Save alexj70/c1aae2d838df7ae508526053cee7c943 to your computer and use it in GitHub Desktop.
Singleton

Singleton

class Singleton {
    static let sharedInstance = Singleton()
    private override init() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment