SwipeCellKit icon indicating copy to clipboard operation
SwipeCellKit copied to clipboard

Open swipe options on click on cell

Open mortuzahossain opened this issue 3 years ago • 4 comments

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

mortuzahossain avatar Oct 24 '22 06:10 mortuzahossain

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

salmaanahmed avatar Jan 25 '23 00:01 salmaanahmed

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

mortuzahossain avatar Jan 25 '23 08:01 mortuzahossain

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

mortuzahossain avatar Jan 25 '23 08:01 mortuzahossain

Maybe you can try something like this

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

salmaanahmed avatar Jan 30 '23 16:01 salmaanahmed