Contents

init(displayScale:)

Creates a trait collection that contains only a specified display scale.

Declaration

init(displayScale scale: CGFloat)

Parameters

  • scale:

    The display scale for the new trait collection. Use 1.0 to specify a non-Retina display scale, and a value of 2.0 or greater to specify a Retina display scale.

Return Value

A new trait collection containing only a specified display scale trait.

See Also

Creating a trait collection