how can I pass data from one container to another, both embedded in the same uiviewcontroller in swift?
I have a parent UIViewController and it has two different view containers - each of them has embedded UIViewController inside. It looks somehow like this: I want to change the label on the right container when user presses the button stored on the left one. So far I was able to do it while having a button placed in a parent view controller, then I was just using a protocol: in my parent component I had: class ParentController: UIViewController { var delegateEmbedded:HandleEmbedded? override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier ==