title: Getting version and build information with Swift
body: <p>I am attempting to gain access to the main <code>NSBundle</code> to retrieve <strong>version</strong> and <strong>build</strong> information. Thing is, I want to try it in Swift, I know how to retrieve it in Objective-C with:</p>
  <pre class="lang-objectivec prettyprint-override"><code>text = [NSBundle.mainBundle.infoDictionary objectForKey:@&quot;CFBundleVersion&quot;];
  </code></pre>
  <p>Yet I don't know where to start with Swift, I have attempted to write it in the new syntax with no avail.</p>