Skip to content

Commit

Permalink
Fix (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMorM authored Nov 1, 2024
1 parent c89102c commit 7b48bf1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/FluentUI_iOS/Components/Navigation/NavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,13 @@ open class NavigationBar: UINavigationBar, TokenizedControl, TwoLineTitleViewDel
tokenSet.update(newWindow.fluentTheme)

updateTitleViewTokenSets()
updateColors(for: topItem)

if let navigationItem = topItem {
let (_, actualItem) = actualStyleAndItem(for: navigationItem)
update(with: actualItem)
} else {
updateColors(for: topItem)
}
}

private func updateTitleViewTokenSets() {
Expand Down Expand Up @@ -756,7 +762,7 @@ open class NavigationBar: UINavigationBar, TokenizedControl, TwoLineTitleViewDel
}

/// Updates the bar button items.
///
///
/// In general, this should be called as late as possible when receiving a new navigation item
/// because it will replace a client-provided left bar button item with a back button if needed.
private func updateBarButtonItems(with navigationItem: UINavigationItem) {
Expand Down

0 comments on commit 7b48bf1

Please sign in to comment.