2019-11-16 19:02:58 +01:00
|
|
|
//
|
|
|
|
// AddWebFeedFolderTableViewCell.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 11/16/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2019-12-08 18:39:13 +01:00
|
|
|
class AddWebFeedFolderTableViewCell: 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
|
|
|
}
|