Fix for navigation bar style update from webpage js bridge call

This commit is contained in:
Sumanth Nadigadda 2022-04-18 16:40:56 +05:30
parent 868a7fc22b
commit 781f3d6d7c
2 changed files with 2 additions and 1 deletions

View File

@ -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 }
}

View File

@ -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];