init(for:)
Creates the most suitable format 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.