Contents

simulateFocusUpdateRequest(from:)

Simulates a focus update request from the specified environment.

Declaration

class func simulateFocusUpdateRequest(from environment: any UIFocusEnvironment) -> any UIFocusDebuggerOutput

Parameters

  • environment:

    The object you want to generate a request for. Specify the focus system, view, view controller, or window whose state you want. You can also specify any other object that adopts the Uifocusenvironment protocol.

Return Value

The UIFocusDebuggerOutput object the focus debugger uses to output the diagnostic information to the debugger console.

Discussion

Call this method from the lldb debugger using the following command. In the example, obj corresponds to an object that adopts the UIFocusEnvironment protocol.

The method simulates a focus update request, outlining each step of the process for determining the next focused item.

See Also

Getting focus information