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

Open swipe options on click on cell #446

Open
mortuzahossain opened this issue Oct 24, 2022 · 4 comments
Open

Open swipe options on click on cell #446

mortuzahossain opened this issue Oct 24, 2022 · 4 comments

Comments

@mortuzahossain
Copy link

Is there any way to open the swipe options of right swipe by clicking on the cell with keeping the existing behavior.

Any help will appreciated.
Thanks

@salmaanahmed
Copy link

You can call showSwipe(orientation: .right) from inside of your SwipeTableViewCell.

@mortuzahossain
Copy link
Author

I want to show it here
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
Is it possible?

@mortuzahossain
Copy link
Author

Can you show me some code snippets for showing the swipe?

@salmaanahmed
Copy link

salmaanahmed commented Jan 30, 2023

Maybe you can try something like this

let cell = collectionView.cellForItem(at: indexPath) as? SwipeCollectionViewCell
cell?.showSwipe(orientation: .right)

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