RIBs
RIBs copied to clipboard
[iOS] Displaying view controller on parent RIB in nested hierarchy
I have this hierarchy:

I'm trying to display view controller of component D (low-level) in view controller of component Root (which has navigation controller, so basically I need to call show(vc, sender: nil)).
However in this nested hierarchy I have no access to view controller of component Root in children components. How can I achieve that?
You use the RIB chain to do the following: attach A, then A attaches B, B attaches C, and finally C attaches D. If those intermediate RIBs do not have a ViewController of their own — you just pass the RootViewController down the dependency chain. Please consult the tutorials for more information.