---
title: "tableView(_:shouldSpringLoadRowAt:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:shouldspringloadrowat:with:)"
---

# tableView(_:shouldSpringLoadRowAt:with:)

Called to let you fine tune the spring-loading behavior of the rows in a table.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, shouldSpringLoadRowAt indexPath: IndexPath, with context: any UISpringLoadedInteractionContext) -> Bool
```

## Parameters

- `tableView`: The table view where the interaction is occurring.
- `indexPath`: The index path of the row whose spring-loading behavior is being considered.
- `context`: A context object that you can use to modify the spring-loading behavior. Use this object to specify the location for spring-loading animations associated in the row.

## Return Value

Return Value true if the row allows spring-loaded interactions or false if it does not.

## Discussion

Discussion Override this method when you want to selectively disable spring-loaded interactions with the rows of your table. For example, you might return false for rows that represent leaf content and not a folder of content. If you do not implement this method, the table view performs spring-loading animations on the row when it is not currently being dragged.By default, spring-loading animations are performed on the entire row. To modify these animations, modify the provided context object. For example, you might use the context object to apply the spring-loading animations to a single subview of the row instead of to the entire row.

## See Also

### Configuring rows for the table view

- [tableView(_:willDisplay:forRowAt:)](uikit/uitableviewdelegate/tableview(_:willdisplay:forrowat:).md)
- [tableView(_:indentationLevelForRowAt:)](uikit/uitableviewdelegate/tableview(_:indentationlevelforrowat:).md)
