Skip to content

Instantly share code, notes, and snippets.

@suvarshibhadra
Last active August 29, 2015 14:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save suvarshibhadra/367bf097d6ae13222979 to your computer and use it in GitHub Desktop.
Save suvarshibhadra/367bf097d6ae13222979 to your computer and use it in GitHub Desktop.
Swift Singleton
class CRBrandManagerSwift:NSObject
{
class func shared()->CRBrandManagerSwift{
struct Static{
static let s_manager = CRBrandManagerSwift();
}
return Static.s_manager;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment