Xcode - How can i programmatically embed/change view controller within a container view?
问题 I am trying to programmatically set / or change the embedded View Controller inside a Controller View . I have 3 different View Controllers, that I would like to show in the Container View, all depending on if the user is logged in or not. I have looked around and tried a bunch of code, I found one that worked, but the code changed the self view, and not the view containers view. A lot of the code I have tried have also not been in Swift 3, so as a new app developer, this has been quite