focusGroups(for:)
Returns the focus group hierarchy for the specified environment object.
Declaration
class func focusGroups(for environment: any UIFocusEnvironment) -> any UIFocusDebuggerOutputParameters
- environment:
The object you want to generate a focus group hierarchy 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
An object the focus debugger uses to store the results that it formats for display.
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 returns the full hierarchy of focus groups for the focus environment object provided.