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

# tableView(_:selectionFollowsFocusForRowAt:)

Asks the delegate whether to relate selection and focus behavior for the row at the corresponding index path.

```
optional func tableView(_ tableView: UITableView, selectionFollowsFocusForRowAt indexPath: IndexPath) -> Bool
```

## Parameters

`tableView`

The table view making the request.

`indexPath`

The index path of the row to determine selection behavior for.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if you want to automatically select the row at the specified index path when focus moves to it; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the table view’s [`selectionFollowsFocus`](/documentation/UIKit/UITableView/selectionFollowsFocus) property is <doc://com.apple.documentation/documentation/Swift/true> and you return <doc://com.apple.documentation/documentation/Swift/false> from this delegate method, focus still moves to the row when the user selects it. However, when focus moves to the row, the row doesn’t automatically select.

---

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)