Change disabled color of reader view button to match other bar button items when disabled
This commit is contained in:
parent
08f7e6d1a4
commit
79e7653619
|
@ -26,6 +26,14 @@ class ArticleExtractorButton: UIButton {
|
|||
super.init(coder: coder)
|
||||
}
|
||||
|
||||
override var isEnabled: Bool {
|
||||
didSet {
|
||||
if isEnabled != oldValue {
|
||||
tintColor = isEnabled ? nil : UIColor.secondaryLabel
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var buttonState: ArticleExtractorButtonState = .off {
|
||||
didSet {
|
||||
if buttonState != oldValue {
|
||||
|
|
Loading…
Reference in New Issue