Contents

init(preferredContentSizeCategory:)

Creates a trait collection that contains only the specified content size category trait.

Declaration

init(preferredContentSizeCategory: UIContentSizeCategory)

Parameters

  • preferredContentSizeCategory:

    The content size category for the new trait collection. For a list of possible values, see Uicontentsizecategory.

Return Value

A new trait collection containing only the content size category trait.

See Also

Creating a trait collection