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

# tableView(_:indentationLevelForRowAt:)

Asks the delegate to return the level of indentation for a row in a given section.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, indentationLevelForRowAt indexPath: IndexPath) -> Int
```

## Parameters

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

## Return Value

Return Value Returns the depth of the specified row to show its hierarchical position in the section.

## See Also

### Configuring rows for the table view

- [tableView(_:willDisplay:forRowAt:)](uikit/uitableviewdelegate/tableview(_:willdisplay:forrowat:).md)
- [tableView(_:shouldSpringLoadRowAt:with:)](uikit/uitableviewdelegate/tableview(_:shouldspringloadrowat:with:).md)
