Instance Property

pixelAspectRatio

The aspect ratio of a single pixel.

Declaration

var pixelAspectRatio: CGFloat { get }

Discussion

The aspect ratio is defined as x/y, where x is the width of the pixel and y is the height of the pixel.

See Also

Accessing the Screen Mode Attributes

var size: CGSize

The screen size, measured in pixels.