       elongationHeader.contentView.layoutIfNeeded()
       
       view.frame = detailViewFinalFrame
-//      detailTableView.frame = detailViewFinalFrame
-//      tempView.frame = detailViewFinalFrame
     }) { (completed) in
-      tempView.removeFromSuperview()
       rootView?.removeFromSuperview()
       context.completeTransition(completed)
     }

    let elongationHeader = cell.elongationHeader
    detail.headerView = elongationHeader
    
    let tempView = UIView()
    tempView.backgroundColor = UIColor.white
    
    // Add coming `view` to temporary `containerView`
    containerView.addSubview(view)
    containerView.addSubview(tempView)
    
    // Update `bottomView`s top constraint and invalidate layout
    elongationHeader.bottomViewTopConstraint.constant = appearance.topViewHeight

    let rect = rootTableView.rectForRow(at: path)
    let cellFrame = rootTableView.convert(rect, to: containerView)

    view.frame = CGRect(x: 0, y: cellFrame.minY, width: detailViewFinalFrame.width, height: cellFrame.height)
    
    // Animate to new state
    UIView.animate(withDuration: duration, delay: 0, options: .curveEaseInOut, animations: {
