control swipe direction only on right swipecellkit
Problem:
I want to enable only the left swipe not right swipe in swipecellkit.How to achieve that?
Solution:
func collectionView(_ collectionView: UICollectionView, editActionsForItemAt indexPath: IndexPath, for orientation: SwipeCellKit.SwipeActionsOrien
guard orientation == .right else { return nil }
}
Comments
Post a Comment