Instance Property

displayScale

The display scale of the trait collection.

Declaration

var displayScale: CGFloat { get }

Discussion

A value of 1.0 indicates a non-Retina display and a value of 2.0 indicates a Retina display. The default display scale for a trait collection is 0.0 (indicating unspecified).

See Also

Retrieving Display-Related Traits

var displayGamut: UIDisplayGamut

The gamut of the current display.

enum UIDisplayGamut

Constants indicating the gamut of the current display.