Skip to content

Instantly share code, notes, and snippets.

@gblancogarcia
Created January 5, 2016 16:15
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 gblancogarcia/8d653e7ecb39dd2831e7 to your computer and use it in GitHub Desktop.
Save gblancogarcia/8d653e7ecb39dd2831e7 to your computer and use it in GitHub Desktop.
Swift 2.1: singleton pattern
class AppManager {
static let sharedInstance = AppManager()
private init () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment