---
title: "collectionView(_:didUnhighlightItemAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdelegate/collectionview(_:didunhighlightitemat:)"
---

# collectionView(_:didUnhighlightItemAt:)

Tells the delegate that the highlight was removed from the item at the specified index path.

## Declaration

```swift
optional func collectionView(_ collectionView: UICollectionView, didUnhighlightItemAt indexPath: IndexPath)
```

## Parameters

- `collectionView`: The collection view object that is notifying you of the highlight change.
- `indexPath`: The index path of the cell that had its highlight removed.

## Discussion

Discussion The collection view calls this method only in response to user interactions and does not call it if you programmatically change the highlighting on a cell.

## See Also

### Managing cell highlighting

- [collectionView(_:shouldHighlightItemAt:)](uikit/uicollectionviewdelegate/collectionview(_:shouldhighlightitemat:).md)
- [collectionView(_:didHighlightItemAt:)](uikit/uicollectionviewdelegate/collectionview(_:didhighlightitemat:).md)
