added fillContainer and backgroundColor
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1965920710
commit
91eb0a5636
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import MVMCore
|
import MVMCore
|
||||||
|
import VDSColorTokens
|
||||||
|
|
||||||
open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol, TabsDelegate, MVMCorePresentationDelegateProtocol, SubNavSwipeNavigationProtocol {
|
open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol, TabsDelegate, MVMCorePresentationDelegateProtocol, SubNavSwipeNavigationProtocol {
|
||||||
|
|
||||||
@ -29,6 +30,7 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
|
|||||||
private var tabsModel: TabsModel
|
private var tabsModel: TabsModel
|
||||||
public lazy var tabs: Tabs = {
|
public lazy var tabs: Tabs = {
|
||||||
let tabs = Tabs(model: tabsModel, delegateObjectIVar, nil)
|
let tabs = Tabs(model: tabsModel, delegateObjectIVar, nil)
|
||||||
|
tabs.fillContainer = true
|
||||||
tabs.delegate = self
|
tabs.delegate = self
|
||||||
return tabs
|
return tabs
|
||||||
}()
|
}()
|
||||||
@ -109,6 +111,9 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
|
|||||||
open override func pageShown() {
|
open override func pageShown() {
|
||||||
// Currently not calling super until we can decouple page shown logics for managers.
|
// Currently not calling super until we can decouple page shown logics for managers.
|
||||||
hideNavigationBarLine(true)
|
hideNavigationBarLine(true)
|
||||||
|
|
||||||
|
//set the tabs backgroundColor
|
||||||
|
tabs.backgroundColor = (viewController as? PageProtocol)?.pageModel?.navigationBar?.backgroundColor?.uiColor ?? VDSColor.backgroundPrimaryLight
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func viewWillDisappear(_ animated: Bool) {
|
open override func viewWillDisappear(_ animated: Bool) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user