I have a UICollectionView and I have template cells that loads from xib file in my collection. however, I am unable to handle the button tapped inside the view that have the UICollectionView. I also want to get the Index of the clicked cell.
I have created the button tapped action in my template cell class but I'm unable to get the index of the cell. How to get it?