I have the parent custom Collectionviewcell and inside I have the child custom Tableview. When I click table view I need to change the background color of collectionviewcell and tableview row background. I am trying achieve using gesture for tableview. but its not working.
3
Answers
Why you don’t use didSelect of tableView?
Some code should be easy to see how you use gestures.
try with protocols
first your tableview inform the collection cell
then on your collectionView Cell
I have created one main array, inside created another array for table content, and manage selection on tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath).
Please check demo : https://github.com/karan7698007/CollectionViewDemo.git