Contents

tableView(_:shouldIndentWhileEditingRowAt:)

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

Declaration

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

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

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