Instance Method

contains(_:)

Returns a Boolean value that indicates whether the view controller contains the specified focus environment.

Declaration

func contains(_ environment: UIFocusEnvironment) -> Bool

Parameters

environment

The focus environment.

Return Value

true if the view controller contains the focus environment, or false if it doesn't.

See Also

Configuring the Interface Appearance

func sizeThatFits(in: CGSize) -> CGSize

Calculates and returns the most appropriate size for the current view.

var preferredStatusBarStyle: UIStatusBarStyle

The preferred status bar style for the view controller.

var preferredStatusBarUpdateAnimation: UIStatusBarAnimation

The animation style to use when hiding or showing the status bar for this view controller.

var preferredUserInterfaceStyle: UIUserInterfaceStyle

The preferred interface style for this view controller.

var prefersStatusBarHidden: Bool

A Boolean value that indicates whether the view controller prefers the status bar to be hidden or shown.