title: How to get device width and height?
body: <p>In Objective-C we can get device width and height by using following code : </p>
  
  <pre><code>CGRect sizeRect = [UIScreen mainScreen].applicationFrame
  float width = sizeRect.size.width
  float height = sizeRect.size.height
  </code></pre>
  
  <p><strong>How can do this in with Swift ?</strong></p>