Skip to content

Commit

Permalink
Remove context menu methods from selection delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Sep 2, 2021
1 parent 14511fc commit 7e9b9b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions Source/IGListKit/IGListBindingSectionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,4 @@ - (void)didUnhighlightItemAtIndex:(NSInteger)index {
[self.selectionDelegate sectionController:self didUnhighlightItemAtIndex:index viewModel:self.viewModels[index]];
}

#if !TARGET_OS_TV
- (UIContextMenuConfiguration * _Nullable)contextMenuConfigurationForItemAtIndex:(NSInteger)index point:(CGPoint)point {
return [self.selectionDelegate sectionController:self contextMenuConfigurationForItemAtIndex:index point:point viewModel:self.viewModels[index]];
}
#endif

@end
15 changes: 0 additions & 15 deletions Source/IGListKit/IGListBindingSectionControllerSelectionDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,6 @@ NS_SWIFT_NAME(ListBindingSectionControllerSelectionDelegate)
didUnhighlightItemAtIndex:(NSInteger)index
viewModel:(id)viewModel;

/**
Tells the delegate that a cell has requested a menu configuration.
@param sectionController The section controller the request of a menu configuration occurred in.
@param index The index of the cell that is being longed tap.
@param point The point of the tap on the cell.
@param viewModel The view model that was bound to the cell.
@return An object that conforms to `UIContextMenuConfiguration`.
*/
- (UIContextMenuConfiguration * _Nullable)sectionController:(IGListBindingSectionController *)sectionController
contextMenuConfigurationForItemAtIndex:(NSInteger)index
point:(CGPoint)point
viewModel:(id)viewModel API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos);

@end

NS_ASSUME_NONNULL_END

0 comments on commit 7e9b9b9

Please sign in to comment.