title: Swift singleton pattern in a framework
body: <p>I have a workspace in Xcode with my framework and with a test-app, so two xcode projects in one workspace.
  In the framework I am building a <code>singleton</code> class, like so:</p>
  
  <pre><code>public let sharedInstance = MKUserPreferences()
  
  class func A() {}
  class func B() {}
  </code></pre>
  
  <p>But when I am in the app project and trying to call <code>MKUserPreferences.sharedInstance.A()</code>, it won't autocomplete and the method is not available. How do I solve this?</p>
  
  <p><strong>EDIT: please keep in mind that <code>MKUserPreferences</code> is in a dynamically linked framework and I want to use it in my app (other project).</strong></p>