Skip to content

Commit

Permalink
fix for stutter
Browse files Browse the repository at this point in the history
  • Loading branch information
virginiacook committed Dec 12, 2023
1 parent 8457976 commit eba0924
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ class BottomSheetViewController: UIViewController, BottomSheetPresentable {
contentViewController.requiresFullScreen
}
self.contentContainerView.layoutIfNeeded()

animateHeightChange(forceAnimation: true)

oldContentViewController.footerView.removeFromSuperview()
footerViewContainerView.subviews.forEach({ $0.removeFromSuperview() })
footerViewContainerView.addArrangedSubview(contentViewController.footerView)
footerViewContainerView.layoutIfNeeded()

animateHeightChange(forceAnimation: true)
// Add its navigation bar if necessary
oldContentViewController.navigationBar.removeFromSuperview()
navigationBarContainerView.addArrangedSubview(contentViewController.navigationBar)
Expand Down

0 comments on commit eba0924

Please sign in to comment.