Skip to content

Instantly share code, notes, and snippets.

@samma835
Created November 5, 2014 05:20
Show Gist options
  • Select an option

  • Save samma835/c40df96720b7588d073a to your computer and use it in GitHub Desktop.

Select an option

Save samma835/c40df96720b7588d073a to your computer and use it in GitHub Desktop.

Revisions

  1. samma835 created this gist Nov 5, 2014.
    7 changes: 7 additions & 0 deletions singleton
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    private let sharedInstance = MyManager()

    class MyManager {
    class var sharedManager : MyManager {
    return sharedInstance
    }
    }