Skip to content

Commit

Permalink
Forward the value of accessibilityTraits property to the cell.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 467190932
  • Loading branch information
Nobody authored and material-automation committed Aug 12, 2022
1 parent 8a8a34d commit 564eaec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/src/NICellCatalog.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ - (BOOL)shouldUpdateCellWithObject:(id)object {
if ([object isKindOfClass:[NITitleCellObject class]]) {
NITitleCellObject* titleObject = object;
self.textLabel.text = titleObject.title;
self.textLabel.accessibilityTraits = titleObject.accessibilityTraits;
self.imageView.image = titleObject.image;
}
if ([object isKindOfClass:[NISubtitleCellObject class]]) {
Expand Down

0 comments on commit 564eaec

Please sign in to comment.