Type Method

appearance(for:whenContainedInInstancesOf:)

Returns the appearance proxy for an object that is contained by one of the specified classes and has the specified trait collection.

Required.

Declaration

static func appearance(for trait: UITraitCollection, whenContainedInInstancesOf containerTypes: [UIAppearanceContainer.Type]) -> Self

Parameters

trait

The trait collection used for matching.

containerTypes

An array of appearance container classes.

Return Value

The appearance proxy to use for the object.

See Also

Appearance Methods

static func appearance() -> Self

Returns the appearance proxy for the receiver.

Required.

static func appearance(for: UITraitCollection) -> Self

Returns the appearance proxy for the receiver that has the passed trait collection.

Required.

static func appearance(whenContainedInInstancesOf: [UIAppearanceContainer.Type]) -> Self

Returns the appearance proxies when the object is contained by one of the specified classes.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software