<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:shouldSpringLoadRowAt:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:shouldSpringLoadRowAtIndexPath:withContext:"
  },
  "title" : "tableView(_:shouldSpringLoadRowAt:with:)"
}
-->

# tableView(_:shouldSpringLoadRowAt:with:)

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

```
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

<doc://com.apple.documentation/documentation/Swift/true> if the row allows spring-loaded interactions or <doc://com.apple.documentation/documentation/Swift/false> if it does not.

## Discussion

Override this method when you want to selectively disable spring-loaded interactions with the rows of your table. For example, you might return <doc://com.apple.documentation/documentation/Swift/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.

---

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)