RIBs icon indicating copy to clipboard operation
RIBs copied to clipboard

[iOS] Displaying view controller on parent RIB in nested hierarchy

Open tailec opened this issue 6 years ago • 1 comments

I have this hierarchy: 38175663-1243b9c6-35d8-11e8-8e69-cb9432651e23

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?

tailec avatar Nov 29 '18 15:11 tailec

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.

ermik avatar Nov 30 '18 01:11 ermik