Skip to content
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