Obtenha o índice do meio da célula central na tabela View Swift
let middleIndex = ((heightTableView.indexPathsForVisibleRows?.first?.row)! + (heightTableView.indexPathsForVisibleRows?.last?.row)!)/2
Crowded Chamois