A runtime object for debugging focus-related interactions.


class UIFocusDebugger : NSObject


You do not use this class or its methods directly from your code. During a debugging session, you can call the methods of this class from the lldb debugger command line to obtain information about the current state of the focus system.


Getting Help

class func help() -> UIFocusDebuggerOutput

Returns information about how to use the commands of the debugger object.

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.

class func simulateFocusUpdateRequest(from: UIFocusEnvironment) -> UIFocusDebuggerOutput

Simulates a focus update request from the specified environment.

protocol UIFocusDebuggerOutput

An interface for specifying output from a focus debugger object.


Inherits From

Conforms To

See Also

Debugging Support

Debugging Focus Issues in Your App

Find errors and determine why the next focused item isn't what you expected.