Skip to content

Commit

Permalink
Fix the 'setBackground' method in CKLabelComponent
Browse files Browse the repository at this point in the history
Summary: CKLabelComponent doesn't update a background color as a result of a state update.

Reviewed By: gkassabli

Differential Revision: D6965677

fbshipit-source-id: f917740431805159d5573786bda2e129a13c28ed
  • Loading branch information
kfirapps authored and facebook-github-bot committed Feb 13, 2018
1 parent ba900bf commit 05a028f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ComponentTextKit/CKTextComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ - (void)setBackgroundColor:(UIColor *)backgroundColor
[backgroundColor getHue:NULL saturation:NULL brightness:NULL alpha:&alpha]) {
if (alpha == 1.0) {
self.textLayer.opaque = YES;
[self.textLayer setNeedsDisplay];
}
}
}
Expand Down

0 comments on commit 05a028f

Please sign in to comment.