Set final frame in transition

This commit is contained in:
Justin Mazzocchi 2021-03-04 16:53:49 -08:00
parent 97564113c6
commit f30f516482
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -45,6 +45,7 @@ private extension ZoomAnimator {
else { return }
toVC.view.alpha = 0
toVC.view.frame = transitionContext.finalFrame(for: toVC)
toReferenceView.isHidden = true
transitionContext.containerView.addSubview(toVC.view)