title: Get the name (string) of a generic type in Swift
body: <p>I have a generic class of type T and I would like to get the name of the type that passed into the class when instantiated.  Here is an example.</p>
  
  <pre><code>class MyClass&lt;T&gt; {
      func genericName() -&gt; String {
          // Return the name of T.
      }
  }
  </code></pre>
  
  <p>I have been looking around for hours and I can't seem to find any way to do this.  Has anyone tried this yet?</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Thanks</p>