how to design Split View in Viper Design Pattern using Xib's?

I am using Viper Design Pattern For Larger Project. Got Problem while Communication in Split View From root View Controller to Design View Controller.

Replies

while Clicking the Root View Cotroller table View geting ui componets as nill in Detal View Controller.

Could you show the relevant code ?


In particular the prepare for segue as well as the detail view class properties.


Note: you know you cannot set directly the IBOutlets of the destination (detail View) in the prepare in the Source (master): you need to set properties of detailView in prepatre, then in DetailView, you set the IBOutlets with the values you passed.

In VIPER, the navigation from one top-level view controller to another is done by a "router" component. Hence when using XIB, you need to have the view controllers call the router component to instantiate and show other view controllers. This router component can also be the UISplitViewController's delegate (and maybe the two root navigation controllers of the split view).


Have a look at the sequence diagram in this article for an example.



OTOH when you're using storyboards, the storyboard "is" kinda the "router".