MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

Change the amount of swipe needed to complete the action

Open NaorKup opened this issue 9 years ago • 1 comments

Hi, Maybe i'm missing something, but I couldn't find how to reduce the amount of swipe the user needs to do in order to complete the action of the swipe (i want just a light swipe to complete the action instead of going 1/4 of the screen for example)..

Thanks

NaorKup avatar May 24 '16 14:05 NaorKup

Hi,

Check the threshold property of MGSwipeSettings and MGSwipeExpansionSettings:

//MGSwipeSettings /** Size proportional threshold to hide/keep the buttons when the user ends swiping. Default value 0.5 */ @property (nonatomic, assign) CGFloat threshold;

//MGSwipeExpansionSettings /** Size proportional threshold to trigger the expansion button. Default value 1.5 */ @property (nonatomic, assign) CGFloat threshold;

MortimerGoro avatar Jul 23 '16 15:07 MortimerGoro