Refresh navigation bar, after updating navigation model received from JS call
This commit is contained in:
parent
781f3d6d7c
commit
afacedda9b
@ -74,6 +74,9 @@ extension NavigationController: MVMCoreViewManagerProtocol {
|
||||
let model = getNavigationModel(from: viewController) {
|
||||
setNavigationItem(with: model, for: topViewController)
|
||||
setNavigationBarUI(with: model)
|
||||
|
||||
navigationBar.setNeedsLayout()
|
||||
navigationBar.layoutIfNeeded()
|
||||
}
|
||||
manager?.newDataReceived?(in: viewController)
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ public extension UINavigationController {
|
||||
let tint = model.tintColor.uiColor
|
||||
navigationBar.tintColor = tint
|
||||
|
||||
let appearance = navigationBar.standardAppearance
|
||||
let appearance = UINavigationBarAppearance()
|
||||
appearance.configureWithOpaqueBackground()
|
||||
appearance.titleTextAttributes = [NSAttributedString.Key.font: font,
|
||||
NSAttributedString.Key.foregroundColor: tint];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user