---
title: "simulateFocusUpdateRequest(from:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uifocusdebugger/simulatefocusupdaterequest(from:)"
---

# simulateFocusUpdateRequest(from:)

Simulates a focus update request from the specified environment.

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UIFocusEnvironment protocol.

## Return Value

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

## Discussion

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

- [status()](uikit/uifocusdebugger/status().md)
- [checkFocusability(for:)](uikit/uifocusdebugger/checkfocusability(for:).md)
- [focusGroups(for:)](uikit/uifocusdebugger/focusgroups(for:).md)
- [preferredFocusEnvironments(for:)](uikit/uifocusdebugger/preferredfocusenvironments(for:).md)
- [UIFocusDebuggerOutput](uikit/uifocusdebuggeroutput.md)
