From 79e76536196fb2711b914977532d64d3c5e81a89 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 27 Sep 2019 12:12:12 -0500 Subject: [PATCH] Change disabled color of reader view button to match other bar button items when disabled --- iOS/Article/ArticleExtractorButton.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iOS/Article/ArticleExtractorButton.swift b/iOS/Article/ArticleExtractorButton.swift index 20eab116f..d899e3d91 100644 --- a/iOS/Article/ArticleExtractorButton.swift +++ b/iOS/Article/ArticleExtractorButton.swift @@ -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 {