i have two viewcontrollers: One which is just normal and the other one which i use like a Popup Viewcontroller. Now i need to pass a value to the Popup Viewcontroller but i cannot do it with the normal prepare for segue method. I start showing the Popup Controller like this:
let popUpPreload = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "selectShoppingList") as! AddToListViewController
self.addChild(popUpPreload)
popUpPreload.view.frame = self.view.frame
self.view.addSubview(popUpPreload.view)
popUpPreload.didMove(toParent: self)
so how can i transfer a value to my Subview