Fix for navigation bar style update from webpage js bridge call
This commit is contained in:
parent
868a7fc22b
commit
781f3d6d7c
@ -21,4 +21,5 @@ public protocol NavigationItemModelProtocol {
|
||||
var additionalRightButtons: [(NavigationButtonModelProtocol & MoleculeModelProtocol)]? { get set }
|
||||
var titleView: MoleculeModelProtocol? { get set }
|
||||
var titleOffset: UIOffset? { get }
|
||||
var style: NavigationItemStyle? { get set }
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ public extension UINavigationController {
|
||||
let tint = model.tintColor.uiColor
|
||||
navigationBar.tintColor = tint
|
||||
|
||||
let appearance = UINavigationBarAppearance()
|
||||
let appearance = navigationBar.standardAppearance
|
||||
appearance.configureWithOpaqueBackground()
|
||||
appearance.titleTextAttributes = [NSAttributedString.Key.font: font,
|
||||
NSAttributedString.Key.foregroundColor: tint];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user