Maintained by Elvis Nuñez.
View Controller Containment is a weird dance, it’s a set of repetitive steps that you have to do in the right order to be able to get your view controller successfully inserted on top of another controller.
It’s super powerful and can be really useful, the only issue is that you don’t need all of that power most of the time.
Most of the time you only want one controller on top another, that’s it. A simple sandwich.
let parentController = UIViewController()
let childController = UIViewController()
// Adding a child controller
// Removing a child controller
ControllerContainer is available through CocoaPods. To install it, simply add the following line to your Podfile:
ControllerContainer is available under the MIT license. See the LICENSE file for more info.
Elvis Nuñez, @3lvis