---
title: allowsFocus
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableview/allowsfocus
---

# allowsFocus

A Boolean value that determines whether the table view allows its cells to become focused.

## Declaration

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

## Discussion

Discussion If you implement tableView(_:canFocusRowAt:), its return value takes precedence over the value of this property. The system determines the default value of this property according to the platform and other properties of the table view.

## See Also

### Working with focus

- [allowsFocusDuringEditing](uikit/uitableview/allowsfocusduringediting.md)
- [selectionFollowsFocus](uikit/uitableview/selectionfollowsfocus.md)
- [remembersLastFocusedIndexPath](uikit/uitableview/rememberslastfocusedindexpath.md)
