Skip to content

Commit

Permalink
Merge pull request #50 from TimOliver/translucent-bug-fix
Browse files Browse the repository at this point in the history
Bug fix for translucency and tint color
  • Loading branch information
TimOliver authored Oct 9, 2023
2 parents 9fdfa98 + 704b1b3 commit c1e7192
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
x.y.z Release Notes (yyyy-MM-dd)
=============================================================

1.2.1 Release Notes (2023-10-09)
=============================================================

### Fixed

* Tint color peridoically resets itself when translucency is enabled. ([#50](https://github.com/TimOliver/TORoundedButton/pull/50))

1.2.0 Release Notes (2023-10-08)
=============================================================

### Added

* A `delegate` property to receive tap events for the button where delegates are preferred over blocks. ([#46](https://github.com/TimOliver/TORoundedButton/pull/46))
Expand Down
2 changes: 1 addition & 1 deletion TORoundedButton.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'TORoundedButton'
s.version = '1.2.0'
s.version = '1.2.1'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A high-performance button control with rounded corners for iOS.'
s.homepage = 'https://github.com/TimOliver/TORoundedButton'
Expand Down
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 c1e7192

Please sign in to comment.