MGSwipeTableCell
MGSwipeTableCell copied to clipboard
Change the amount of swipe needed to complete the action
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
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;