2020-04-23 04:44:26 -05:00
|
|
|
//
|
|
|
|
|
// SelectComboTableViewCell.swift
|
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
|
//
|
|
|
|
|
// Created by Maurice Parker on 4/23/20.
|
|
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
2025-09-16 10:21:29 -07:00
|
|
|
final class SelectComboTableViewCell: 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
|
|
|
|
2020-04-23 04:44:26 -05: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 : UIColor.label
|
2020-10-22 18:56:33 -05:00
|
|
|
if animated {
|
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
|
}
|
|
|
|
|
} else {
|
2020-04-23 04:44:26 -05:00
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
|
}
|
2025-11-05 11:22:10 -08:00
|
|
|
|
2020-04-23 04:44:26 -05:00
|
|
|
updateLabelVibrancy(label, color: labelColor, animated: animated)
|
|
|
|
|
}
|
2025-11-05 11:22:10 -08:00
|
|
|
|
2020-04-23 04:44:26 -05:00
|
|
|
}
|