Skip to content

Commit 6055736

Browse files
committed
supplementaryViewProvider optional type
1 parent 007dc2b commit 6055736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FHDiffableViewControllers/FHDiffableCollectionViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ open class FHDiffableCollectionViewController<SectionIdentifierType, ItemIdentif
132132
/// - important: Do not forget to register the reuseable view before the first snapshot is applied!
133133
///
134134
/// collectionView.register(CustomReuseableView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: /*your identifier*/) // e.g. in viewDidLoad()
135-
open var supplementaryViewProvider: UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>.SupplementaryViewProvider {
135+
open var supplementaryViewProvider: UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>.SupplementaryViewProvider? {
136136
return _supplementaryViewProvider
137137
}
138138

0 commit comments

Comments
 (0)