diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b810f2..ec92984 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. ([#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)) 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' 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];