The way to do this is to pass the data to the UIViewController
B from the UIViewController
A via the segue.
Afterwards, in the UIViewController
B, when you implement the method override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController]
you should create B1 and B2 controllers. After the creation of them, you should set the pertinent information to each one.
var data = "The data passed from A"
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController]
let firstChild = B1()
let secondChild = B2()
firstChild.data = self.data
secondChild.data = self.data
return [firstChild, secondChild]
}
Hope it helps!