diff --git a/Source/ASTableView.mm b/Source/ASTableView.mm index 1ae332a1e..a5a50aee4 100644 --- a/Source/ASTableView.mm +++ b/Source/ASTableView.mm @@ -20,6 +20,7 @@ #import #import #import +#import #import #import #import @@ -28,6 +29,7 @@ #import #import + static NSString * const kCellReuseIdentifier = @"_ASTableViewCell"; //#define LOG(...) NSLog(__VA_ARGS__) @@ -118,6 +120,12 @@ - (void)setElement:(ASCollectionElement *)element // This is actually a workaround for a bug we are seeing in some rare cases (selected background view // overlaps other cells if size of ASCellNode has changed.) self.clipsToBounds = node.clipsToBounds; + + // If the cell node has been explicitly configured with a tint color, we can apply that directly to the cell view to preserve the previous behavior + UIColor *nodeTintColor = node->_tintColor; + if (nodeTintColor != nil) { + self.tintColor = nodeTintColor; + } } [node __setSelectedFromUIKit:self.selected];