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

# tableView(_:leadingSwipeActionsConfigurationForRowAt:)

Returns the swipe actions to display on the leading edge of the row.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?
```

## Parameters

- `tableView`: The table view containing the row.
- `indexPath`: The index path of the row.

## Return Value

Return Value The swipe actions to display next to the leading edge of the row. Return nil if you want the table to display the default set of actions.

## Discussion

Discussion Use this method to return a set of actions to display when the user swipes the row. The actions you return are displayed on the leading edge of the row. For example, in a left-to-right language environment, they are displayed on the left side of the row when the user swipes from left to right.

## See Also

### Responding to row actions

- [tableView(_:trailingSwipeActionsConfigurationForRowAt:)](uikit/uitableviewdelegate/tableview(_:trailingswipeactionsconfigurationforrowat:).md)
- [tableView(_:shouldShowMenuForRowAt:)](uikit/uitableviewdelegate/tableview(_:shouldshowmenuforrowat:).md)
- [tableView(_:canPerformAction:forRowAt:withSender:)](uikit/uitableviewdelegate/tableview(_:canperformaction:forrowat:withsender:).md)
- [tableView(_:performAction:forRowAt:withSender:)](uikit/uitableviewdelegate/tableview(_:performaction:forrowat:withsender:).md)
- [tableView(_:editActionsForRowAt:)](uikit/uitableviewdelegate/tableview(_:editactionsforrowat:).md)
