Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SWTableViewCell/PodFiles/SWTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef NS_ENUM(NSInteger, SWCellState)
- (BOOL)swipeableTableViewCell:(SWTableViewCell *)cell canSwipeToState:(SWCellState)state;
- (void)swipeableTableViewCellDidEndScrolling:(SWTableViewCell *)cell;
- (void)swipeableTableViewCell:(SWTableViewCell *)cell didScroll:(UIScrollView *)scrollView;

- (void)swipeableTableViewCell:(SWTableViewCell *)cell didSwipeToState:(SWCellState) state;
@end

@interface SWTableViewCell : UITableViewCell
Expand Down
5 changes: 4 additions & 1 deletion SWTableViewCell/PodFiles/SWTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,10 @@ -(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)
{
self.tapGestureRecognizer.enabled = YES;
}

if(self.delegate && [self.delegate respondsToSelector:@selector(swipeableTableViewCell:didSwipeToState:)])
{
[self.delegate swipeableTableViewCell:self didSwipeToState:self.cellState];
}
}

#pragma mark - UIGestureRecognizerDelegate
Expand Down