How to pass data through Tab Bar Controller? UIKit

Hi everyone, An application has a Tab Bar Controller, two navigation stacks with navigation controllers, and two view controllers in each stack. In each navigation stack, the first view controller is a List of items, the second is the Detail screen, where I can edit an item from the list. The first navigation stack is Items, the second one is Orders.

I can navigate inside this or that navigation stack using segues. But in this case, I need to move from one navigation stack to another. And to do this not with the help of a direct segue, because this is an incorrect method and it creates certain problems, but through the Tab Bar Controller.

For example, to start to create an order, I can go from VC2.2 to VC1.1 using an index:

        tabBarController?.selectedIndex = 0

And how to return back from VC1.1 to VC 2.2 via Tab Bar Controller and pass data?

How to pass data through Tab Bar Controller? UIKit
 
 
Q