Contents

traitCollectionDidChange(_:)

Notifies the view when the device orientation changes.

Declaration

@MainActor @preconcurrency override dynamic func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)

Parameters

  • previousTraitCollection:

    The prior state of the trait collection before the change occurs.

Overview

This property inherits from UIView.

See Also

Accessing view features