<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFocusDebugger/simulateFocusUpdateRequest(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFocusDebugger(cm)simulateFocusUpdateRequestFromEnvironment:"
  },
  "title" : "simulateFocusUpdateRequest(from:)"
}
-->

# simulateFocusUpdateRequest(from:)

Simulates a focus update request from the specified environment.

```
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 [`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment) protocol.

## Return Value

The [`UIFocusDebuggerOutput`](/documentation/UIKit/UIFocusDebuggerOutput) object the focus debugger uses to output the diagnostic information to the debugger console.

## Discussion

Call this method from the `lldb` debugger using the following command. In the example, `obj` corresponds to an object that adopts the [`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment) protocol.

```objc
po [UIFocusDebugger simulateFocusUpdateRequestFromEnvironment: obj]
```

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)