title: Get a user-readable version of the class name in swift (in objc NSStringFromClass was fine)
body: <p>Is there an equivalent of NSStringFromClass in Swift that gives a user-readable version of the class name? I've tried to use it with a native Swift class I created, but as you can see, the result seems to be the compiler's internal representation of the class name:</p>
  
  <pre><code>println(NSStringFromClass(MyClass.self))
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>_TtC5test7MyClass
  </code></pre>
  
  <p>I've tried adding the <strong>@objc</strong> attribute to the class, and making it a subclass of NSObject, but it makes no difference. I've discovered that if I replace MyClass with an Objective-C class of the same name, and import this in the bridging header, it gives me 'MyClass', but this shouldn't be necessary.</p>
  
  <p>Another option would be to make a protocol for this, which each class I want to use in this way must conform to:</p>
  
  <pre><code>protocol Nameable {
      class var className: String { get }
  }
  </code></pre>
  
  <p>However, it would be easier to have a built-in way to do this in the language.</p>