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

# collectionView(_:shouldSpringLoadItemAt:with:)

Determines whether the spring-loading interaction effect is displayed for the specified item.

```
optional func collectionView(_ collectionView: UICollectionView, shouldSpringLoadItemAt indexPath: IndexPath, with context: any UISpringLoadedInteractionContext) -> Bool
```

## Parameters

`collectionView`

The collection view object notifying you of the interaction.

`indexPath`

The index path of the item for which the spring-loading behavior applies.

`context`

A context object containing information about the item and view on which to display the spring-loading interaction.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to apply the spring-loading behavior for the item or <doc://com.apple.documentation/documentation/Swift/false> to suppress the behavior altogether.

## Discussion

If you do not implement this method, the collection view assumes a return value of <doc://com.apple.documentation/documentation/Swift/true>.

---

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)