<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewDiffableDataSourceReferenceSupplementaryViewProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSCollectionViewDiffableDataSourceSupplementaryViewProvider"
  },
  "title" : "NSCollectionViewDiffableDataSourceReferenceSupplementaryViewProvider"
}
-->

# NSCollectionViewDiffableDataSourceReferenceSupplementaryViewProvider

A closure that configures and returns a collection view’s supplementary view, such as a header or footer, from a diffable data source.

```
typealias NSCollectionViewDiffableDataSourceReferenceSupplementaryViewProvider = (NSCollectionView, String, IndexPath) -> NSView?
```

## Parameters

`collectionView`

The collection view to configure this supplementary view for.

`kind`

The kind of supplementary view to provide. The layout object that supports the supplementary view defines the value of this string.

`indexPath`

The index path that specifies the location of the supplementary view in the collection view.

## Return Value

A non-`nil` configured supplementary view object. The supplementary view provider must return a valid view object to the collection view.

---

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)