Instance Property


The natural scale factor associated with the screen.


var scale: CGFloat { get }


This value reflects the scale factor needed to convert from the default logical coordinate space into the device coordinate space of this screen. The default logical coordinate space is measured using points. For standard-resolution displays, the scale factor is 1.0 and one point equals one pixel. For Retina displays, the scale factor is 2.0 and one point is represented by four pixels.

See Also

Getting the Bounds Information

var bounds: CGRect

The bounding rectangle of the screen, measured in points.

var applicationFrame: CGRect

The frame rectangle for the app window, measured in points.

var nativeBounds: CGRect

The bounding rectangle of the physical screen, measured in pixels.

var nativeScale: CGFloat

The native scale factor for the physical screen.