Ramotion/expanding-collection

How do I add button click event on each of the cell?

junweimah opened this issue · 1 comments

So I have a design like this for my project :

image

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