MortimerGoro / MGSwipeTableCell

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
MIT License
6.96k stars 1.07k forks source link

Differentiate between full swipe and tapped on button from left to right. #281

Closed SharadExt closed 2 years ago

SharadExt commented 7 years ago

How to differentiate between full swipe cell and tapped on cell from right to left ?

MortimerGoro commented 7 years ago

fromExpansion argument is true when full swipe, and false when tapped on button

/**
 * Called when the user clicks a swipe button or when a expandable button is automatically triggered
 * @return YES to autohide the current swipe buttons
 **/
-(BOOL) swipeTableCell:(nonnull MGSwipeTableCell*) cell tappedButtonAtIndex:(NSInteger) index direction:(MGSwipeDirection)direction fromExpansion:(BOOL) fromExpansion;
SharadExt commented 2 years ago

Thanks