---
title: setNeedsFocusUpdate()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uifocusenvironment/setneedsfocusupdate()
---

# setNeedsFocusUpdate()

Submits a request to the focus engine for a focus update in this environment.

## Declaration

```swift
func setNeedsFocusUpdate()
```

## Discussion

Discussion If this environment does not currently contain the focused view, calling this method has no effect. Otherwise, and if the focus update is accepted by the focus engine, focus is reset to the preferred focused view on the run loop cycle. If a parent of this environment is also requesting focus, the parent’s request takes priority.

## See Also

### Requesting focus update

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