title: Swift: Determine iOS Screen size
body: <p>I would like to use Swift code to properly position items in my app for no matter what the screen size is. For example, if I want a button to be 75% of the screen wide, I could do something like <code>(screenWidth * .75)</code> to be the width of the button. I have found that this could be determined in Objective-C by doing</p>
  
  <pre><code>CGFloat screenWidth = screenSize.width;
  CGFloat screenHeight = screenSize.height;
  </code></pre>
  
  <p>Unfortunately, I am unsure of how to convert this to Swift. Does anyone have an idea?</p>
  
  <p>Thanks!</p>