title: NSClassFromString using a Swift File
body: <p>I have written a class in Swift in my existing Objective-C project. So far, the bridging has worked very well. I do have a method however, where I generate a class at runtime using NSClassFromString(). When the string is my Swift class name, it returns nil.</p>
  
  <pre><code>class MySwiftClass : NSObject {}
  </code></pre>
  
  <p>and in Objective-C:</p>
  
  <pre><code>Class myClass = NSClassFromString(@"MySwiftClass");
  </code></pre>
  
  <p>and myClass would be nil every time. I've also tried:</p>
  
  <pre><code>Class myClass = NSClassFromString(@"MyAppName.MySwiftClass");
  </code></pre>
  
  <p>and still nil.</p>