Properly animate reactions without jitter [IG Direct] [Reactions Emitter Animation] [7/x]

Summary: We add a boolean isDisplayingCell method to check the existence of displayingCell in IGListBindingSingleSectionController

Reviewed By: chritto

Differential Revision: D20649871

fbshipit-source-id: f626cfdedff907604514c485d11362cd9ba12b99
This commit is contained in:
Andy Wang 2020-03-27 13:51:50 -07:00 committed by Facebook GitHub Bot
parent 0f3fd694d3
commit e437743e2b
2 changed files with 6 additions and 0 deletions

View file

@ -46,6 +46,8 @@ NS_SWIFT_NAME(ListBindingSingleSectionController)
// Subclasable. Defaults is no-op.0
- (void)didUnhighlightItemWithCell:(Cell)cell;
- (BOOL)isDisplayingCell;
@end
NS_ASSUME_NONNULL_END

View file

@ -116,4 +116,8 @@
[super didEndDisplayingCell:cell atIndex:index listAdapter:listAdapter];
}
- (BOOL)isDisplayingCell {
return _displayingCell != nil;
}
@end