Files
NetNewsWire/iOS/Add/AddComboTableViewCell.swift
T

29 lines
741 B
Swift
Raw Normal View History

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