From e3ec38534ecb1ec041f4b111c3a39676374b5757 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Mon, 9 Oct 2023 14:51:49 +0900 Subject: [PATCH 1/4] Skip tint color change when translucency is set --- TORoundedButton/TORoundedButton.m | 1 + 1 file changed, 1 insertion(+) diff --git a/TORoundedButton/TORoundedButton.m b/TORoundedButton/TORoundedButton.m index e03fb2d..12abe48 100644 --- a/TORoundedButton/TORoundedButton.m +++ b/TORoundedButton/TORoundedButton.m @@ -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]; From 476a3af70c6830cf7fae0f9a1d39441c0a6fe034 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Mon, 9 Oct 2023 14:55:10 +0900 Subject: [PATCH 2/4] Updated CHANGELOG --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b810f2..147162c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. + +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)) From 6f2e3cec3793ad286b2f8b2d95d42483e3522407 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Mon, 9 Oct 2023 15:33:59 +0900 Subject: [PATCH 3/4] Updated CHANGELOG --- TORoundedButton.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TORoundedButton.podspec b/TORoundedButton.podspec index ff6c748..2ed5427 100644 --- a/TORoundedButton.podspec +++ b/TORoundedButton.podspec @@ -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' From 704b1b367af54cab673dfee023732c3da4961bd4 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Mon, 9 Oct 2023 15:35:25 +0900 Subject: [PATCH 4/4] Update CHANGELOG with PR reference --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 147162c..ec92984 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ x.y.z Release Notes (yyyy-MM-dd) ### Fixed -* Tint color peridoically resets itself when translucency is enabled. +* 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) =============================================================