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

# shouldIndentWhileEditing

A Boolean value that controls whether the cell background is indented when the table view is in editing mode.

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

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/true>. This property is unrelated to [`indentationLevel`](/documentation/UIKit/UITableViewCell/indentationLevel). The delegate can override this value in [`tableView(_:shouldIndentWhileEditingRowAt:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:shouldIndentWhileEditingRowAt:)). This property has an effect only on table views created in the grouped style ([`UITableView.Style.grouped`](/documentation/UIKit/UITableView/Style-swift.enum/grouped)); it has no effect on [`UITableView.Style.plain`](/documentation/UIKit/UITableView/Style-swift.enum/plain) table views.

---

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)