SwipyCell
SwipyCell copied to clipboard
How to disable swipe for cell
I want to disable swipe for cell after add trigger for cell, please help me.
cell.addSwipeTrigger(forState: .state(0, .left), withMode: .toggle, swipeView: checkView, swipeColor: greenColor, completion: { cell, trigger, state, mode in
print("Did swipe \"Checkmark\" cell")
cell.isUserInteractionEnabled = false
})
just add to completion cell.isUserInteractionEnabled = false