I'm implementing a custom UIPageViewController so that I can use custom animations between view controllers.
I can transition from one view controller to the other with the transition(from:to:duration:options:animations:completion:)
method. However I want the transition to be interactive, controlled by a pan gesture recognizer.
I implemented both
animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController)
and
interactionControllerForPresentation(using animator: UIViewControllerAnimatedTransitioning)
on the child view controllers but these methods are not called when using the above transition function.
How can I get an interactive transition between two child view controllers?