---
title: selectionFollowsFocus
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableview/selectionfollowsfocus
---

# selectionFollowsFocus

A Boolean value that triggers an automatic selection when focus moves to a cell.

## Declaration

```swift
var selectionFollowsFocus: Bool { get set }
```

## Discussion

Discussion The system determines the default value of this property according to the platform and other properties of the table view.

## See Also

### Selecting rows

- [indexPathForSelectedRow](uikit/uitableview/indexpathforselectedrow.md)
- [indexPathsForSelectedRows](uikit/uitableview/indexpathsforselectedrows.md)
- [selectRow(at:animated:scrollPosition:)](uikit/uitableview/selectrow(at:animated:scrollposition:).md)
- [deselectRow(at:animated:)](uikit/uitableview/deselectrow(at:animated:).md)
- [allowsSelection](uikit/uitableview/allowsselection.md)
- [allowsMultipleSelection](uikit/uitableview/allowsmultipleselection.md)
- [allowsSelectionDuringEditing](uikit/uitableview/allowsselectionduringediting.md)
- [allowsMultipleSelectionDuringEditing](uikit/uitableview/allowsmultipleselectionduringediting.md)
- [selectionDidChangeNotification](uikit/uitableview/selectiondidchangenotification.md)
