Skip to content

Commit

Permalink
respect default render mode for main icon of cardnudge (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrieshin authored Aug 24, 2023
1 parent f06f46d commit 01ac785
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/FluentUI/Card Nudge/CardNudge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public struct CardNudge: View, TokenizedControlView {
RoundedRectangle(cornerRadius: tokenSet[.circleRadius].float)
.frame(width: CardNudgeTokenSet.circleSize, height: CardNudgeTokenSet.circleSize)
.foregroundColor(Color(tokenSet[.buttonBackgroundColor].uiColor))
Image(uiImage: icon)
.renderingMode(.template)
Image(uiImage: icon.renderingMode == .automatic ? icon.withRenderingMode(.alwaysTemplate) : icon)
.frame(width: CardNudgeTokenSet.iconSize, height: CardNudgeTokenSet.iconSize, alignment: .center)
.foregroundColor(Color(tokenSet[.buttonForegroundColor].uiColor))
}
Expand Down

0 comments on commit 01ac785

Please sign in to comment.