2020-04-23 11:44:26 +02:00
|
|
|
//
|
|
|
|
// SelectComboTableViewCell.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 4/23/20.
|
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
class SelectComboTableViewCell: VibrantTableViewCell {
|
|
|
|
|
|
|
|
@IBOutlet weak var icon: UIImageView!
|
|
|
|
@IBOutlet weak var label: UILabel!
|
|
|
|
|
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
|
|
super.updateVibrancy(animated: animated)
|
|
|
|
|
|
|
|
let iconTintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
2020-10-23 01:56:33 +02:00
|
|
|
if animated {
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
}
|
|
|
|
} else {
|
2020-04-23 11:44:26 +02:00
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
}
|
2020-10-23 01:56:33 +02:00
|
|
|
|
2020-04-23 11:44:26 +02:00
|
|
|
updateLabelVibrancy(label, color: labelColor, animated: animated)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|