skip to Main Content

Layout not working when container view controller dynamically changes child view controller – Ios swift

I have a MainViewController that contains a ContainerViewController. The ContainerViewController starts out showing childViewControllerA, and dynamically switches it out to childViewControllerB when a button in the childViewControllerA is clicked: func showNextViewContoller() { let childViewControllerB = ChildViewControllerB() container.addViewController(childViewControllerB) container.children.first?.remove() // Remove…

VIEW QUESTION
Back To Top
Search