---
title: sectionHeaderViewProvider
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableviewdiffabledatasource-c5gl/sectionheaderviewprovider-swift.property
---

# sectionHeaderViewProvider

The closure that configures and returns the table view’s section header views from the diffable data source.

## Declaration

```swift
var sectionHeaderViewProvider: NSTableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>.SectionHeaderViewProvider?
```

## Discussion

Discussion This property replaces the tableView(_:viewFor:row:) method for group rows when the tableColumn parameter in tableView(_:viewFor:row:) would be nil. Setting this property means the table view never invokes its delegate’s tableView(_:isGroupRow:) method. Instead, it uses the current snapshot’s sections.

## See Also

### Creating Row and Section Views

- [rowViewProvider](appkit/nstableviewdiffabledatasource-c5gl/rowviewprovider.md)
- [NSTableViewDiffableDataSource.RowProvider](appkit/nstableviewdiffabledatasource-c5gl/rowprovider.md)
- [NSTableViewDiffableDataSourceReferenceRowProvider](appkit/nstableviewdiffabledatasourcereferencerowprovider.md)
- [NSTableViewDiffableDataSource.SectionHeaderViewProvider](appkit/nstableviewdiffabledatasource-c5gl/sectionheaderviewprovider-swift.typealias.md)
- [NSTableViewDiffableDataSourceReferenceSectionHeaderViewProvider](appkit/nstableviewdiffabledatasourcereferencesectionheaderviewprovider.md)
