<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:didUpdateFocusIn:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:didUpdateFocusInContext:withAnimationCoordinator:"
  },
  "title" : "tableView(_:didUpdateFocusIn:with:)"
}
-->

# tableView(_:didUpdateFocusIn:with:)

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

```
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 [`UIFocusUpdateContext`](/documentation/UIKit/UIFocusUpdateContext) class, containing metadata for the focus related update.

`coordinator`

An instance of the [`UIFocusUpdateContext`](/documentation/UIKit/UIFocusUpdateContext) class, containing metadata for the focus related update.

## Discussion

This functionality of this delegate method is equivalent to overriding [`UITableView`](/documentation/UIKit/UITableView) class’s  implementation of [`tableView(_:didUpdateFocusIn:with:)`](/documentation/UIKit/UITableViewDelegate/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`](/documentation/UIKit/UITableViewFocusUpdateContext).

---

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)