Contents

traitCollection

The traits that describe the current environment of the scene.

Declaration

var traitCollection: UITraitCollection { get }

Discussion

Use this property to get additional information about the current scene, such as the size class and scale factor. For more information about the available traits, see UITraitCollection.

See Also

Getting the interface attributes