<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:shouldIndentWhileEditingRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:shouldIndentWhileEditingRowAtIndexPath:"
  },
  "title" : "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.

```
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

<doc://com.apple.documentation/documentation/Swift/true> if the background of the row should be indented, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the delegate does not implement this method, the default is <doc://com.apple.documentation/documentation/Swift/true>. This method is unrelated to [`tableView(_:indentationLevelForRowAt:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:indentationLevelForRowAt:)).

---

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)