default shouldSwipeView?
Opened this issue · 0 comments
coolcool1994 commented
Swipe version supports this already but when you set
self.swipeableView.swipingDeterminator = self;
The default behavior of shouldSwipeView does not work anymore where you swipe a bit and the card would come back. How do you set this delegate as self and still somehow about to let that default handler handle the case if I return YES to shouldSwipeView delegate method.
- (BOOL)shouldSwipeView:(UIView *)view
movement:(ZLSwipeableViewMovement *)movement
swipeableView:(ZLSwipeableView *)swipeableView {
if (CardNotCompleted) {
return NO;
}
return [DefaultHandler shouldSwipeView:(UIView *)view
movement:(ZLSwipeableViewMovement *)movement
swipeableView:(ZLSwipeableView *)swipeableView] ;
}