title: Index path of a collection view cell that is inside of a table view cell
body: <p>I have a UICollectionView nested inside of a table view cell. How can I get the index path of the horizontal row of the collectionview cell? I tried to use </p>
  
  <pre><code>        let index = cell.tag
  
          print(index as Any) 
  </code></pre>
  
  <p>to print which index was being selected not knowing that it will print a value of zero no matter what cell I select. I apologize that I am not experienced with collection views. Any help is much appreciated. Thanks.</p>