Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for translucency and tint color #50

Merged
merged 4 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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