2019-10-23 10:35:53 -05:00
|
|
|
//
|
|
|
|
// SettingsAccountTableViewCell.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 10/23/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2025-01-25 11:01:12 -08:00
|
|
|
final class SettingsComboTableViewCell: VibrantTableViewCell {
|
2019-10-23 10:35:53 -05:00
|
|
|
|
2020-04-16 08:25:40 -05:00
|
|
|
@IBOutlet weak var comboImage: UIImageView!
|
|
|
|
@IBOutlet weak var comboNameLabel: UILabel!
|
2019-10-23 10:35:53 -05:00
|
|
|
|
2019-11-02 19:57:01 -05:00
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
|
|
super.updateVibrancy(animated: animated)
|
2020-04-16 08:25:40 -05:00
|
|
|
updateLabelVibrancy(comboNameLabel, color: labelColor, animated: animated)
|
2025-01-22 22:18:09 -08:00
|
|
|
|
2025-01-30 12:58:14 -08:00
|
|
|
let tintColor = isHighlighted || isSelected ? AppColor.vibrantText : UIColor.label
|
2020-10-22 18:56:33 -05:00
|
|
|
if animated {
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
self.comboImage?.tintColor = tintColor
|
|
|
|
}
|
|
|
|
} else {
|
2020-04-16 08:25:40 -05:00
|
|
|
self.comboImage?.tintColor = tintColor
|
2019-10-23 11:47:21 -05:00
|
|
|
}
|
2019-10-23 10:35:53 -05:00
|
|
|
}
|
2025-01-22 22:18:09 -08:00
|
|
|
|
2019-10-23 10:35:53 -05:00
|
|
|
}
|