Performs a transition between two sibling child view controllers of the view controller.
- macOS 10.10+
A child view controller whose view is visible in the view controller’s view hierarchy.
A child view controller whose view is not in the view controller’s view hierarchy.
A bitmask of options that specify how you want to perform the transition animation. For the options, see the
Controller .Transition Options
A block called immediately after the transition animation completes.
Use this method to transition between sibling child view controllers owned by a parent view controller (which is the receiver of this method).
This method adds the view in the
to view controller to the superview of the view in the
from view controller. Likewise, this method removes the
from view from the parent view controller’s view hierarchy at the appropriate time. It is important to allow this method to add and remove these views.