I've been working to implement a custom modal transition that uses a UIPresentationController
subclass to create and manipulate an additional view during the presentation and dismissal. Apple helpfully provides an example of how to do this in the documentation, but I've hit a snag.
When presenting the modal, my custom view animations work perfectly, but when I dismiss the modal, the animations applied to the custom views in dismissalTransitionWillBegin
play out of sync with the animations specified by the transition animator object I'm returning from animationControllerForDismissedController:
. Specifically, the custom view's animations are ignoring the duration of the transition animation and are always playing very quickly (the duration appears to be around 0.2 seconds).
What could cause animateAlongsideTransition:completion:
to ignore the duration of the base animation?