---
title: setNeedsSelectionUpdate()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitextselectiondisplayinteraction/setneedsselectionupdate()
---

# setNeedsSelectionUpdate()

Tells the system to update the selection UI to match the current selection state.

## Declaration

```swift
func setNeedsSelectionUpdate()
```

## Mentioned in

Adopting system selection UI in custom text views

## Discussion

Discussion When the selection state changes in your text input view, call this method to notify the system of the change. The system fetches the current selection state from your text input view and updates the system UI to match.

## See Also

### Reporting changes to the selection

- [layoutManagedSubviews()](uikit/uitextselectiondisplayinteraction/layoutmanagedsubviews().md)
