SwipyCell icon indicating copy to clipboard operation
SwipyCell copied to clipboard

How to disable swipe for cell

Open teamfreelancerhcm opened this issue 2 years ago • 1 comments

I want to disable swipe for cell after add trigger for cell, please help me.

teamfreelancerhcm avatar Nov 22 '21 04:11 teamfreelancerhcm

        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

egementrk avatar Aug 30 '23 12:08 egementrk