I have a UITableView with pagingEnabled. Each cell takes up the viewing area of the table. Meaning, each cell is the same height and width as the table. I\'m using custom
Swift 4+
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { let firstVisibleIndexPath = self.tableView.indexPathsForVisibleRows?[0] print("top visible cell section is \([firstVisibleIndexPath!.section])") }