expanding-collection
expanding-collection copied to clipboard
How do I add button click event on each of the cell?
So I have a design like this for my project :
How do I add and handle click event for all the cell's button?
I have this delegate :
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
But this is tapping of the whole cell, not the button.
Any help?
Thanks
You probably need to disable click on view with view.UserInteractionEnabled or to cell