checkFocusability(for:)
Returns information about whether the item can become focused, including any known issues that would prevent the item from becoming focused.
Declaration
class func checkFocusability(for item: any UIFocusItem) -> any UIFocusDebuggerOutputParameters
- item:
The focus item to evaluate.
Return Value
An object the focus debugger uses to store the results that it will format for display.
Discussion
Call this method from the lldb debugger using the following command. In the example, item corresponds to an object that adopts the UIFocusItem protocol.
The method returns the focus-related information, including known issues.