Commit 642bfef5 by Daniel Dahan Committed by GitHub

Merge pull request #1079 from phlippieb/feature/extensible_navigation_bar_class

Added custom navigationBarClass support to NavigationController
parents 87ac65d4 93142b1d
......@@ -69,6 +69,11 @@ open class NavigationController: UINavigationController {
super.init(navigationBarClass: NavigationBar.self, toolbarClass: nil)
setViewControllers([rootViewController], animated: false)
}
public init(rootViewController: UIViewController, navigationBarClass: Swift.AnyClass?) {
super.init(navigationBarClass: navigationBarClass, toolbarClass: nil)
setViewControllers([rootViewController], animated: false)
}
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment