Commit 93142b1d by phlippieb

Added custom navigationBarClass support to NavigationController

parent 9b69558f
...@@ -69,6 +69,11 @@ open class NavigationController: UINavigationController { ...@@ -69,6 +69,11 @@ open class NavigationController: UINavigationController {
super.init(navigationBarClass: NavigationBar.self, toolbarClass: nil) super.init(navigationBarClass: NavigationBar.self, toolbarClass: nil)
setViewControllers([rootViewController], animated: false) 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) { open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) 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