title: swift height of the cell in the current View
body: <p>I have couple of cells in table view. Now at any given point of time I want to calculate the current height of the cell in the view, i.e if it is 3/4th of through the view, It should return (cellheight)*3/4 height.</p>
  
  <p>I have calculated the current view in following way: </p>
  
  <p><code>let visibleRect = CGRect(origin: tableView.contentOffset, size: tableView.bounds.size)</code></p>
  
  <p>Now as and when I stop scrolling, I want to find the current height of the cell of particular indexpath, which I have calculated here.</p>
  
  <p><code>let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
   let visibleIndexPath = tableView.indexPathForRow(at: visiblePoint)!
  </code> </p>
  
  <p>I hope I am clear. Thanks for the help.</p>
  
  <p>Cheers!</p>