alikaragoz / MCSwipeTableViewCell

:point_up_2: Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).
MIT License
2.96k stars 412 forks source link

Set swipe percentage programmatically #75

Open eytanbiala opened 10 years ago

eytanbiala commented 10 years ago

Allow setting swipe state for a cell, so it can be programmatically controlled to show the swipe animation.

thorst commented 10 years ago

Are you saying you want to show the swipe options programmatically? (If so that doesn't make sense to me as they bounce back or remove the cell)

Or are you asking for the ability to change the points at which they are considered activating that button:

cell.firstTrigger = 0.25;
cell.secondTrigger = 0.5;
eytanbiala commented 10 years ago

Yes I'd like to show the swipe options programatically. Currently there's no indication to a user that the cell can be swiped. Showing the swipe options, then bouncing back after a short delay would be fine.

joeblau commented 9 years ago

This would be helpful if you're trying to instrument a global swipe like how Mailbox has a way to clear all. It's only 1 cell at the bottom, but it swipes all of the cells concurrently.