Type Method


Simulates a focus update request from the specified environment.


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


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

Listing 1

Getting help

po UIFocusDebugger.simulateFocusUpdateRequest(from: obj)

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

See Also

Getting Focus Information

class func status() -> UIFocusDebuggerOutput

Returns the state of the focus system, including information about the currently focused item.

class func checkFocusability(for: UIFocusItem) -> UIFocusDebuggerOutput

Returns information about whether the item can be focused, including any known issues that would prevent the item from being focused.

protocol UIFocusDebuggerOutput

An interface for specifying output from a focus debugger object.