title: Updating Cell Height after Fetching an Image from the Database
body: <p>I'm trying to update the height of my tableview cell after loading an image from the database asynchronously.
  The use case is:
  Fetch the image when the cell is visible. So i have to call `loadImageWith(callBack: () -> ()) in the cell it self.
  When i receive the callBack, i would like to update the particular cell with the image.
  For the image there is no placeholder etc. So if no image is available the cell is empty.</p>
  
  <p>I have tried to call <br>
  <code>self.tableView.beginUpdates()
   self.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.fade)
  self.tableView.endUpdates()</code><br>
  in the callBack like described in other threads but obviously this leads to an infinite loop.
  I also tried to call <code>cell.needsLayout</code> or/and <code>cell.layoutIfNeeded</code> after adding the image to the image view.
  with no effect on the row.</p>
  
  <p>I'm not using any third party library, because i need to fetch the image data from the local database not from a server.</p>
  
  <p>If im loading all the images in viewDidLoad and call<br> <code>self.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.fade)
  </code><br> then it works but the requirement is to load just the visible cells.</p>
  
  <p>Hope any has a solution for this issue.</p>