I have a container view which performs a couple of segues inside based upon a users actions. I also have a top UIView that I would like to control from within the container view segue and set it's state.
I've tried to set a delegate to the home controller using a protocol and also the following approach:
if let parent = self.parent as? HomeController {
parent.handleTopBarState(state: .web)
}
What I would like to happen is when I'm on a specific view controller, set the parent view controller's top bar view's state.
Thanks.