ControllerContainer 0.1.2

ControllerContainer 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Elvis Nuñez.



ControllerContainer

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.

Usage

let parentController = UIViewController()
let childController = UIViewController()

// Adding a child controller
parentController.addController(childController)

// Removing a child controller
parentController.removeController(childController)

Installation

ControllerContainer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ControllerContainer'

License

ControllerContainer is available under the MIT license. See the LICENSE file for more info.

Author

Elvis Nuñez, @3lvis