mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-16 11:22:34 +01:00
27 lines
710 B
Swift
27 lines
710 B
Swift
//
|
|
// AddWebFeedFolderTableViewCell.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Maurice Parker on 11/16/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class AddWebFeedFolderTableViewCell: 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 : AppAssets.secondaryAccentColor
|
|
UIView.animate(withDuration: duration(animated: animated)) {
|
|
self.icon.tintColor = iconTintColor
|
|
}
|
|
updateLabelVibrancy(label, color: labelColor, animated: animated)
|
|
}
|
|
|
|
}
|