         guard tableView.indexPathsForVisibleRows?.contains(lastCellIndexPath) ?? false
             else { return }
         previousRowFrame = tableView.rectForRow(at: IndexPath(row: lastCellIndexPath.row - 1, section: lastCellIndexPath.section))
-        // Get height of empty spaces to fill
+        // Get height of empty spaces to fill.
         let availableHeight = tableView.frame.size.height - previousRowFrame.maxY
         if availableHeight.rounded() >= lastCellIntrinsicHeight {
             dynamicLastCellHeight = availableHeight
         }
-        needRefreshDynamicLastCellHeight = false
     }
     
     fileprivate func refreshDynamicLastCellHeight() {

    }
    
    fileprivate func updateFillUsingLastCell() {
        // Set default dynamicLastCellHeight.
        dynamicLastCellHeight = intrinsicHeightCells
            ? UITableViewAutomaticDimension

    lazy var lastCellIntrinsicHeight: CGFloat = {
        var height = self.tableView.estimatedRowHeight
        if let cell = self.tableView.cellForRow(at: self.lastCellIndexPath) {
            // Already on screen or static table view controller.
            cell.layoutIfNeeded()
            height = cell.frame.height
        } else {
            // Hasn't loaded yet in cellForRowAt, calculate height after tableView is fully loaded.
            self.isDynamicLastCell = true
        }
        return height
