TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
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
parentController.addController(childController)
// Removing a child controller
parentController.removeController(childController)
ControllerContainer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ControllerContainer'
ControllerContainer is available under the MIT license. See the LICENSE file for more info.
Elvis Nuñez, @3lvis