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