davdroman / DRCellSlideGestureRecognizer

Make your cells actionable through swipes
MIT License
519 stars 45 forks source link

Possible to swipe the push action fully across the screen #18

Open nishtwo opened 8 years ago

nishtwo commented 8 years ago

Hi, i have noticed that the left pull action swipe swipes all the way across the screen and the right one does. is there any way to make this consistent?

davdroman commented 8 years ago

The demo app shows multiple variations of how swipes can be set up. You can determine which behavior each action has (either pull to its original place or push all the way to the edge of the screen):

action.behavior = DRCellSlideActionPullBehavior;

// or

action.behavior = DRCellSlideActionPushBehavior;
nishtwo commented 8 years ago

yeah you you can pull to its original place or push all the way to the edge of screen but can you push to its original place or pull all the way to the edge of the screen? Eg. I want to have two actions that occur, one where you pull all the way to edge of the screen and the action fades out, and one where you push all the way to the edge of the screen and the action fades out.