title: Status bar height in Swift
body: <p>How can I get the status bar's height programmatically in Swift?</p>
  
  <p>In Objective-C, it's like this:</p>
  
  <pre><code>[UIApplication sharedApplication].statusBarFrame.size.height.
  </code></pre>