Instance Property

nativeScale

The native scale factor for the physical screen.

Declaration

var nativeScale: CGFloat { get }

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.

Deprecated
var nativeBounds: CGRect

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

var scale: CGFloat

The natural scale factor associated with the screen.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software