Contents

init(userInterfaceStyle:)

Creates a trait collection that contains only the specified user interface style trait.

Declaration

init(userInterfaceStyle: UIUserInterfaceStyle)

Parameters

  • userInterfaceStyle:

    The interface style for the trait collection. For a list of possible values, see Uiuserinterfacestyle.

Return Value

A new trait collection containing only the interface style trait.

See Also

Creating a trait collection