Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable swipe for cell #27

Open
teamfreelancerhcm opened this issue Nov 22, 2021 · 1 comment
Open

How to disable swipe for cell #27

teamfreelancerhcm opened this issue Nov 22, 2021 · 1 comment

Comments

@teamfreelancerhcm
Copy link

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

@egementrk
Copy link

egementrk commented Aug 30, 2023

        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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants