I'm building a social media app that has a feed of posts. It's required to start playback of assigned track to a post when a post is fully visible on a screen. This is a lay out I have now. 

[![Current layout, 2 items visible](https://i.stack.imgur.com/K4Hrl.png)](https://i.stack.imgur.com/K4Hrl.png) 

This is a piece of code I figured out, but it only works with a very first post in a timeline.

```js
func scrollViewDidScroll(_ scrollView: UIScrollView) {

    let visibleCell = tableView.visibleCells.first as! HomeControllerTableViewCell

    let firstCellVisibleIndexPath = tableView.indexPathsForVisibleRows?.first

    if tableView.bounds.contains(tableView.rectForRow(at: firstCellVisibleIndexPath!)){
      let fullyVisibleCell = tableView.cellForRow(at: firstCellVisibleIndexPath!) as! HomeControllerTableViewCell

      print(fullyVisibleCell.authorNameLabel.text)

    }

  }
```

Please help me figure out how to determine what cell is fully visible.