Skip to content

Commit

Permalink
Respecting avatarOverrideStyle when setting TitleView style (microsof…
Browse files Browse the repository at this point in the history
…t#1949)

Respecting avatarOverrideStyle when setting TitleView style
  • Loading branch information
DanielMorM authored Jan 24, 2024
1 parent 3053e63 commit 882746f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ios/FluentUI/Navigation/Views/AvatarTitleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ class AvatarTitleView: UIView, TokenizedControlInternal, TwoLineTitleViewDelegat
didSet {
updateAppearance()
twoLineTitleView.currentStyle = style == .primary ? .primary : .system
avatar?.state.style = style == .primary ? .default : .accent
let avatarStyle: MSFAvatarStyle
if let avatarOverrideStyle {
avatarStyle = avatarOverrideStyle
} else {
avatarStyle = (style == .primary) ? .default : .accent
}
avatar?.state.style = avatarStyle
}
}

Expand Down

0 comments on commit 882746f

Please sign in to comment.