Instance Method


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: UISpringLoadedInteractionContext) -> Bool



The table view where the interaction is occurring.


The index path of the row whose spring-loading behavior is being considered.


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

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


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

func tableView(UITableView, willDisplay: UITableViewCell, forRowAt: IndexPath)

Tells the delegate the table view is about to draw a cell for a particular row.

func tableView(UITableView, indentationLevelForRowAt: IndexPath) -> Int

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