scale
The pixel density of the display on the intended device.
Declaration
var scale: CGFloat { get }Discussion
This property represents the scale factor, or pixel density, of the device’s display as described in Image Size and Resolution. For example, the value for a device with a @2x display is 2.0.
You can pass the initializer a screen scale that isn’t the current device’s screen scale. For example, you can create thumbnails for different scales, upload them to a server, and download them later on devices with a different screen scale.