Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default shouldSwipeView? #88

Open
coolcool1994 opened this issue Jun 30, 2017 · 0 comments
Open

default shouldSwipeView? #88

coolcool1994 opened this issue Jun 30, 2017 · 0 comments

Comments

@coolcool1994
Copy link

coolcool1994 commented Jun 30, 2017

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] ;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant