when reference transitionCoordinator
on child vc, it used to called transitionCoordinator
on custom container class in iOS7, but in iOS8 this wasn't the case. Now it return nil and I have no clue what should I change to make this work.
I guess its about UIPresentationController introduced in iOS8, but can't find proper implementation for custom container view controller.
As Matt said in this previous SO question:
But, according to transitionCoordinator, overriding it is allowed:
So, I would try to create my own coordinator for my own VC container. If you use a
UIViewPropertyAnimator
to manipulate the VC container's children, it's almost straightforward.Here is an example:
In my custom container, I would use it like this:
Of course, some edge cases are not handled. It's a really basic example.