title: Obtain bundle identifier programmatically in Swift?
body: <p>How can I get the bundle ID in Swift?</p>
  
  <p>Objective-C version:</p>
  
  <pre><code>NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
  </code></pre>