title: How to get a Swift type name as a string with its namespace (or framework name)
body: <p>Is there any way to get a Swift type name as a string with its namespace (or framework name)?</p>
  
  <p>For example, if <code>Foo.framework</code> has a class named <code>Bar</code>, I would like to get a string something like <code>"Foo.Bar"</code>.</p>
  
  <p>The followings just return the class name <code>"Bar"</code>.</p>
  
  <pre><code>let barName1 = String(Bar.self)       // returns "Bar"
  let barName2 = "\(Bar.self)"          // returns "Bar"
  let barName3 = "\(Bar().dynamicType)" // returns "Bar"
  </code></pre>
  
  <p>I would like to also get the framework name <code>"Foo"</code> as a namespace.</p>