Skip to content

Commit e3ec385

Browse files
committed
Skip tint color change when translucency is set
1 parent 9fdfa98 commit e3ec385

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TORoundedButton/TORoundedButton.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ - (CGSize)sizeThatFits:(CGSize)size {
227227

228228
- (void)tintColorDidChange {
229229
[super tintColorDidChange];
230+
if (_isTranslucent) { return; }
230231
_titleLabel.backgroundColor = [self _labelBackgroundColor];
231232
_backgroundView.backgroundColor = self.tintColor;
232233
[self setNeedsLayout];

0 commit comments

Comments
 (0)