mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change reader button to be a system button
This commit is contained in:
@@ -16,23 +16,6 @@ enum ArticleExtractorButtonState {
|
||||
}
|
||||
|
||||
class ArticleExtractorButton: UIButton {
|
||||
|
||||
init() {
|
||||
super.init(frame: CGRect(x: 0, y: 0, width: 44, height: 44))
|
||||
setImage(AppAssets.articleExtractorOff, for: .normal)
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
super.init(coder: coder)
|
||||
}
|
||||
|
||||
override var isEnabled: Bool {
|
||||
didSet {
|
||||
if isEnabled != oldValue {
|
||||
tintColor = isEnabled ? nil : UIColor.secondaryLabel
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var buttonState: ArticleExtractorButtonState = .off {
|
||||
didSet {
|
||||
|
||||
Reference in New Issue
Block a user