title: How to set the scale when using UIGraphicsImageRenderer
body: <p>By default <code>UIGraphicsImageRenderer</code> sets the scale to the device's screen scale, on iPhone 6s it's 2x and iPhone 6s Plus 3x, therefore even though you've given it a size with dimension 300 it's creating it at either 600 or 900 depending on which device is being used. When you want to ensure it's always 300, how do you set the scale?</p>
  
  <pre><code>let outputBounds = CGRect(x: 0, y: 0, width: 300, height: 300)
  let renderer = UIGraphicsImageRenderer(bounds: outputBounds)
  let image = renderer.image { context in
       //...
  }
  </code></pre>
  
  <p>Previously you would set the scale via the last parameter here:
  <code>UIGraphicsBeginImageContextWithOptions(bounds.size, false, 1)</code></p>