- Do not pass
true
toUIView.snapshotView(afterScreenUpdates:)
when create a snapshot for animated transition object (false
is fine). - Don't call
animator.startAnimation()
oranimator.pauseAnimator()
instartInteractiveTransition(_:)
- If
interruptibleAnimator(using:)
is implemented,UINavigationController
will observefractionComplete
from the returned animator object (not confirmed but very likely) and will animate the navigation bar accordingly to that value. CallingUIViewControllerContextTransitioning.updateInteractiveTransition(_:)
will almost have no effect on the navigation bar animation (but you should call it anyway). - If
interruptibleAnimator(using:)
is not implemented,UINavigationController
will use values that are passed toUIViewControllerContextTransitioning.updateInteractiveTransition(_:)
to animate the navigation bar.
- You cannot set the height of
UINavigationBar
to something other than44
.UINavigationBar
will kindly set the height of itself back. Of course you can force this afterviewDidLayoutSubviews
for example, but you'll get jumpy transition animation.