Files
NetNewsWire/iOS/Settings/SettingsComboTableViewCell.swift
T

29 lines
767 B
Swift
Raw Normal View History

//
// SettingsAccountTableViewCell.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 10/23/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
final class SettingsComboTableViewCell: VibrantTableViewCell {
2025-11-19 19:43:09 -08:00
@IBOutlet var comboImage: UIImageView!
@IBOutlet var comboNameLabel: UILabel!
override func updateVibrancy(animated: Bool) {
super.updateVibrancy(animated: animated)
updateLabelVibrancy(comboNameLabel, color: labelColor, animated: animated)
2025-11-05 11:22:10 -08:00
2025-11-19 10:38:18 -08:00
let tintColor = isHighlighted || isSelected ? Assets.Colors.vibrantText : UIColor.label
2020-10-22 18:56:33 -05:00
if animated {
UIView.animate(withDuration: Self.duration) {
self.comboImage?.tintColor = tintColor
}
} else {
self.comboImage?.tintColor = tintColor
}
}
2025-11-05 11:22:10 -08:00
}