title: Access singleton sharedInstance in Objective-C class from Swift class in combined project
body: <p>I have an objective-C project in which I have added a Swift class.  I would like to access a shared instance of an Objective C class from my Swift code but I can't find any examples of how to do this.  Here are a couple examples of code in Objective-C to access shared Instances that I would like to perform from Swift:</p>
  
  <pre><code>//to get property
  self.managedObjectContext = [myModel sharedInstance].managedObjectContext;
  
  //to get a string returned by a method in the sharedInstance
  
  NSString *aUser = [[referenceClass  sharedInstance] getUserName];
  </code></pre>
  
  <p>In the Objective-C header file for the singleton, I have</p>
  
  <pre><code>+ (referenceClass*)sharedInstance;
  </code></pre>
  
  <p>I have imported the classes needed such as referenceClass in my Bridging Header file but how would I get the string using Swift?</p>
  
  <p>Something like:  (Pseudo code)</p>
  
  <pre><code> var username: String = referenceClass.sharedInstance().getUserName()
  </code></pre>
  
  <p>Thanks in advance for any suggestions.</p>