Initializer

init(for:)

Creates a format best suited for rendering on a device with the specified traits.

Declaration

convenience init(for traitCollection: UITraitCollection)

Parameters

traitCollection

The traits of the drawing environment.

Return Value

An initialized format object.