Skip to content

Commit ee228ce

Browse files
committed
Add marks to SPDimmedButton
1 parent 78c8734 commit ee228ce

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Sources/SparrowKit/UIKit/Classes/SPDimmedButton.swift

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import UIKit
2424

2525
open class SPDimmedButton: SPButton {
2626

27+
// MARK: - Ovveride
28+
2729
public override var isHighlighted: Bool {
2830
didSet {
2931
update()
@@ -36,6 +38,13 @@ open class SPDimmedButton: SPButton {
3638
}
3739
}
3840

41+
public override func tintColorDidChange() {
42+
super.tintColorDidChange()
43+
update()
44+
}
45+
46+
// MARK: - Colorise
47+
3948
/**
4049
SparrowKit: Colors for default state.
4150
*/
@@ -60,11 +69,6 @@ open class SPDimmedButton: SPButton {
6069
disabledColorise = Colorise(content: dimmedContentColor, background: dimmedContentColor.withAlphaComponent(0.1))
6170
update()
6271
}
63-
64-
public override func tintColorDidChange() {
65-
super.tintColorDidChange()
66-
update()
67-
}
6872

6973
/**
7074
SparrowKit: Update colors for current state.

0 commit comments

Comments
 (0)