IGListKit/Tests/Objects/IGTestBindingWithoutDeselectionDelegate.m
Jerome B 23daf6de72 Provided support for iOS 13 Context Menus (#1430)
Summary:
## Changes in this pull request

Issue fixed: Provided support for Context Menus

### Checklist

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)

Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1430

Test Plan: https://pxl.cl/2F940

Reviewed By: benhgreen

Differential Revision: D45309023

Pulled By: TimOliver

fbshipit-source-id: 9f3d7871288437414ae3c0d2941802aa506a5553
2025-10-30 21:58:06 -07:00

42 lines
1.4 KiB
Objective-C

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "IGTestBindingWithoutDeselectionDelegate.h"
@implementation IGTestBindingWithoutDeselectionDelegate
- (void)sectionController:(IGListBindingSectionController *)sectionController
didSelectItemAtIndex:(NSInteger)index
viewModel:(id)viewModel {
self.selected = YES;
}
- (void)sectionController:(IGListBindingSectionController *)sectionController
didDeselectItemAtIndex:(NSInteger)index
viewModel:(id)viewModel; {
}
- (void)sectionController:(nonnull IGListBindingSectionController *)sectionController
didHighlightItemAtIndex:(NSInteger)index
viewModel:(nonnull id)viewModel {
}
- (void)sectionController:(nonnull IGListBindingSectionController *)sectionController
didUnhighlightItemAtIndex:(NSInteger)index
viewModel:(nonnull id)viewModel {
}
- (UIContextMenuConfiguration * _Nullable)sectionController:(nonnull IGListBindingSectionController *)sectionController
contextMenuConfigurationForItemAtIndex:(NSInteger)index
point:(CGPoint)point
viewModel:(nonnull id)viewModel API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos) {
return nil;
}
@end