<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableView/allowsFocusDuringEditing",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableView(py)allowsFocusDuringEditing"
  },
  "title" : "allowsFocusDuringEditing"
}
-->

# allowsFocusDuringEditing

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

```
var allowsFocusDuringEditing: Bool { get set }
```

## Discussion

If you implement [`tableView(_:canFocusRowAt:)`](/documentation/UIKit/UITableViewDelegate/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.

---

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)