Contents

contains(_:)

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

Declaration

@MainActor @preconcurrency func contains(_ environment: any UIFocusEnvironment) -> Bool

Parameters

  • environment:

    The focus environment to check.

Return Value

true if environment is contained by the current focus environment or false if it is not.

See Also

Checking the ancestry of the environment