---
title: "tableView(_:didUpdateFocusIn:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:didupdatefocusin:with:)"
---

# tableView(_:didUpdateFocusIn:with:)

Tells the delegate that a focus update specified by the context has just occurred.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, didUpdateFocusIn context: UITableViewFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator)
```

## Parameters

- `tableView`: A table view informing the delegate about the new focus.
- `context`: An instance of the doc://com.apple.uikit/documentation/UIKit/UIFocusUpdateContext class, containing metadata for the focus related update.
- `coordinator`: An instance of the doc://com.apple.uikit/documentation/UIKit/UIFocusUpdateContext class, containing metadata for the focus related update.

## Discussion

Discussion This functionality of this delegate method is equivalent to overriding UITableView class’s  implementation of tableView(_:didUpdateFocusIn:with:). This delegate method provides additional UITableView-related information in its context parameter, such as the index paths for the previously and next focused views. Note that, these index paths are available only if their views are contained within the table view. To learn more about the information provided by the context, see see UITableViewFocusUpdateContext.

## See Also

### Managing table view focus

- [tableView(_:canFocusRowAt:)](uikit/uitableviewdelegate/tableview(_:canfocusrowat:).md)
- [tableView(_:shouldUpdateFocusIn:)](uikit/uitableviewdelegate/tableview(_:shouldupdatefocusin:).md)
- [indexPathForPreferredFocusedView(in:)](uikit/uitableviewdelegate/indexpathforpreferredfocusedview(in:).md)
- [tableView(_:selectionFollowsFocusForRowAt:)](uikit/uitableviewdelegate/tableview(_:selectionfollowsfocusforrowat:).md)
