File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Sources/SparrowKit/UIKit/Classes Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import UIKit
2424
2525open 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.
You can’t perform that action at this time.
0 commit comments