Skip to content

Commit c1e7192

Browse files
authored
Merge pull request #50 from TimOliver/translucent-bug-fix
Bug fix for translucency and tint color
2 parents 9fdfa98 + 704b1b3 commit c1e7192

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
x.y.z Release Notes (yyyy-MM-dd)
22
=============================================================
33

4+
1.2.1 Release Notes (2023-10-09)
5+
=============================================================
6+
7+
### Fixed
8+
9+
* Tint color peridoically resets itself when translucency is enabled. ([#50](https://github.com/TimOliver/TORoundedButton/pull/50))
10+
11+
1.2.0 Release Notes (2023-10-08)
12+
=============================================================
13+
414
### Added
515

616
* A `delegate` property to receive tap events for the button where delegates are preferred over blocks. ([#46](https://github.com/TimOliver/TORoundedButton/pull/46))

TORoundedButton.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'TORoundedButton'
3-
s.version = '1.2.0'
3+
s.version = '1.2.1'
44
s.license = { :type => 'MIT', :file => 'LICENSE' }
55
s.summary = 'A high-performance button control with rounded corners for iOS.'
66
s.homepage = 'https://github.com/TimOliver/TORoundedButton'

TORoundedButton/TORoundedButton.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ - (CGSize)sizeThatFits:(CGSize)size {
227227

228228
- (void)tintColorDidChange {
229229
[super tintColorDidChange];
230+
if (_isTranslucent) { return; }
230231
_titleLabel.backgroundColor = [self _labelBackgroundColor];
231232
_backgroundView.backgroundColor = self.tintColor;
232233
[self setNeedsLayout];

0 commit comments

Comments
 (0)