Skip to content

Commit

Permalink
Skip tint color change when translucency is set
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOliver committed Oct 9, 2023
1 parent 9fdfa98 commit e3ec385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TORoundedButton/TORoundedButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ - (CGSize)sizeThatFits:(CGSize)size {

- (void)tintColorDidChange {
[super tintColorDidChange];
if (_isTranslucent) { return; }
_titleLabel.backgroundColor = [self _labelBackgroundColor];
_backgroundView.backgroundColor = self.tintColor;
[self setNeedsLayout];
Expand Down

0 comments on commit e3ec385

Please sign in to comment.