<!--
{
  "availability" : [
    "tvOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TVUIKit",
  "identifier" : "/documentation/TVUIKit/TVCollectionViewDelegateFullScreenLayout/collectionView(_:layout:willCenterCellAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TVUIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)TVCollectionViewDelegateFullScreenLayout(im)collectionView:layout:willCenterCellAtIndexPath:"
  },
  "title" : "collectionView(_:layout:willCenterCellAt:)"
}
-->

# collectionView(_:layout:willCenterCellAt:)

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

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

---

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)