Change call indexPathsForVisibleSupplementaryElementsOfKind to call indexPathForItem: as suggested by @fredkiefer

This commit is contained in:
Gregory John Casamento 2023-02-07 20:55:22 -05:00
parent 330599e248
commit 7244519365

View file

@ -1491,7 +1491,7 @@ static NSString *_placeholderItem = nil;
- (NSSet *) indexPathsForVisibleSupplementaryElementsOfKind: (NSCollectionViewSupplementaryElementKind)elementKind
{
return nil;
return [self indexPathForItem: [self visibleSupplementaryViewsOfKind: elementKind]];
}
- (NSIndexPath *) indexPathForItem: (NSCollectionViewItem *)item