From b898e05c26b01501aecbf7f3e37d5da5cd4270b5 Mon Sep 17 00:00:00 2001 From: Denys Telezhkin Date: Fri, 14 May 2021 16:07:24 +0300 Subject: [PATCH] Fix typo. --- .../DTCollectionViewManager/DTCollectionViewDataSource.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/DTCollectionViewManager/DTCollectionViewDataSource.swift b/Sources/DTCollectionViewManager/DTCollectionViewDataSource.swift index 84c3cec..83f69f8 100644 --- a/Sources/DTCollectionViewManager/DTCollectionViewDataSource.swift +++ b/Sources/DTCollectionViewManager/DTCollectionViewDataSource.swift @@ -110,14 +110,14 @@ open class DTCollectionViewDataSource: DTCollectionViewDelegateWrapper, UICollec /// Implementation of `UICollectionViewDataSource` protocol. @available(tvOS 10.2, *) open func indexTitles(for collectionView: UICollectionView) -> [String]? { - if let reaction = unmappedReactions.first(where: { $0.methodSignature == EventMethodSignature.indexTitlesForCollectionView.rawValue }) { + if let reaction = collectionViewReactions.first(where: { $0.methodSignature == EventMethodSignature.indexTitlesForCollectionView.rawValue }) { return reaction.performWithArguments((0, 0, 0)) as? [String] } return (delegate as? UICollectionViewDataSource)?.indexTitles?(for: collectionView) } - /// Implementation of `UICollectionViewDataSource` protocol. @available(tvOS 10.2, *) + /// Implementation of `UICollectionViewDataSource` protocol. open func collectionView(_ collectionView: UICollectionView, indexPathForIndexTitle title: String, at index: Int) -> IndexPath { if let indexPath = performNonCellReaction(.indexPathForIndexTitleAtIndex, argumentOne: title, argumentTwo: index) as? IndexPath { return indexPath