2019-11-16 12:02:58 -06:00
|
|
|
//
|
2020-04-23 04:00:51 -05:00
|
|
|
// AddComboTableViewCell.swift
|
2019-11-16 12:02:58 -06:00
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 11/16/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2020-04-23 04:00:51 -05:00
|
|
|
class AddComboTableViewCell: VibrantTableViewCell {
|
2019-11-16 12:02:58 -06:00
|
|
|
|
|
|
|
@IBOutlet weak var icon: UIImageView!
|
|
|
|
@IBOutlet weak var label: UILabel!
|
|
|
|
|
2019-12-08 10:39:13 -07:00
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
|
|
super.updateVibrancy(animated: animated)
|
|
|
|
|
|
|
|
let iconTintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
|
2020-10-22 18:56:33 -05:00
|
|
|
if animated {
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
}
|
|
|
|
} else {
|
2019-12-08 10:39:13 -07:00
|
|
|
self.icon.tintColor = iconTintColor
|
|
|
|
}
|
|
|
|
updateLabelVibrancy(label, color: labelColor, animated: animated)
|
|
|
|
}
|
|
|
|
|
2019-11-16 12:02:58 -06:00
|
|
|
}
|