---
title: "collectionView(_:layout:willCenterCellAt:)"
framework: tvuikit
role: symbol
role_heading: Instance Method
path: "tvuikit/tvcollectionviewdelegatefullscreenlayout/collectionview(_:layout:willcentercellat:)"
---

# collectionView(_:layout:willCenterCellAt:)

Tells the delegate when a cell is to be the center cell.

## Declaration

```swift
optional func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, willCenterCellAt indexPath: IndexPath)
```

## See Also

### Managing Cell Transitions

- [collectionView(_:layout:didCenterCellAt:)](tvuikit/tvcollectionviewdelegatefullscreenlayout/collectionview(_:layout:didcentercellat:).md)
