---
title: "requestFocusUpdate(to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uifocussystem/requestfocusupdate(to:)"
---

# requestFocusUpdate(to:)

Submits a request to update the focus state of the specified object.

## Declaration

```swift
func requestFocusUpdate(to environment: any UIFocusEnvironment)
```

## Parameters

- `environment`: The view, view controller, window, or other object that you want to update. You can specify any object that adopts the doc://com.apple.uikit/documentation/UIKit/UIFocusEnvironment protocol.

## Discussion

Discussion Use this method to ask the focus engine to update the focus-related information for the specified object. If the update request is accepted, the focus engine updates the object’s focus-related information during the next run loop cycle. If the specified object does not contain a focused item, calling this method has no effect.

## See Also

### Managing focus updates

- [updateFocusIfNeeded()](uikit/uifocussystem/updatefocusifneeded().md)
