title: Get App Name in Swift
body: <p>How do I get the application name in Swift?</p>
  
  <p>Googling gave me this:</p>
  
  <pre><code>[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"];
  </code></pre>
  
  <p>I converted it to Swift; error - method doesn't exist:</p>
  
  <pre><code>NSBundle.mainBundle().infoDictionary.objectForKey("CFBundleName")
  </code></pre>