---
title: "tableView(_:shouldIndentWhileEditingRowAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:shouldindentwhileeditingrowat:)"
---

# tableView(_:shouldIndentWhileEditingRowAt:)

Asks the delegate whether the background of the specified row should be indented while the table view is in editing mode.

## Declaration

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

## Parameters

- `tableView`: The table view requesting this information.
- `indexPath`: An index path locating the row in its section.

## Return Value

Return Value true if the background of the row should be indented, otherwise false.

## Discussion

Discussion If the delegate does not implement this method, the default is true. This method is unrelated to tableView(_:indentationLevelForRowAt:).

## See Also

### Editing table rows

- [tableView(_:willBeginEditingRowAt:)](uikit/uitableviewdelegate/tableview(_:willbegineditingrowat:).md)
- [tableView(_:didEndEditingRowAt:)](uikit/uitableviewdelegate/tableview(_:didendeditingrowat:).md)
- [tableView(_:editingStyleForRowAt:)](uikit/uitableviewdelegate/tableview(_:editingstyleforrowat:).md)
- [tableView(_:titleForDeleteConfirmationButtonForRowAt:)](uikit/uitableviewdelegate/tableview(_:titlefordeleteconfirmationbuttonforrowat:).md)
