Skip to content

Commit

Permalink
Update the selectedImageView's tint when the tintColor changes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 633351188
  • Loading branch information
Janette James authored and material-automation committed May 13, 2024
1 parent b3d1365 commit f1d9201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Chips/src/MDCChipView.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#import "UIFont+MaterialTypography.h"
#import "MDCMath.h"
#import <MDFInternationalization/MDFInternationalization.h> // IWYU pragma: keep
#import <MDFInternationalization/MDFRTL.h>

static const MDCFontTextStyle kTitleTextStyle = MDCFontTextStyleBody2;

Expand Down Expand Up @@ -703,6 +704,7 @@ - (void)updateTintColor {

if (tintColor != nil) {
self.imageView.tintColor = tintColor;
self.selectedImageView.tintColor = tintColor;
self.accessoryView.tintColor = tintColor;
}
}
Expand Down

0 comments on commit f1d9201

Please sign in to comment.