2019-10-23 17:35:53 +02:00
|
|
|
//
|
|
|
|
// SettingsAccountTableViewCell.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 10/23/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2020-04-16 15:25:40 +02:00
|
|
|
class SettingsComboTableViewCell: VibrantTableViewCell {
|
2019-10-23 17:35:53 +02:00
|
|
|
|
2020-04-16 15:25:40 +02:00
|
|
|
@IBOutlet weak var comboImage: UIImageView!
|
|
|
|
@IBOutlet weak var comboNameLabel: UILabel!
|
2019-10-23 17:35:53 +02:00
|
|
|
|
2019-11-03 01:57:01 +01:00
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
|
|
super.updateVibrancy(animated: animated)
|
2020-04-16 15:25:40 +02:00
|
|
|
updateLabelVibrancy(comboNameLabel, color: labelColor, animated: animated)
|
2019-11-03 01:57:01 +01:00
|
|
|
|
2019-10-23 17:35:53 +02:00
|
|
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
2020-10-23 01:56:33 +02:00
|
|
|
if animated {
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
self.comboImage?.tintColor = tintColor
|
|
|
|
}
|
|
|
|
} else {
|
2020-04-16 15:25:40 +02:00
|
|
|
self.comboImage?.tintColor = tintColor
|
2019-10-23 18:47:21 +02:00
|
|
|
}
|
2019-10-23 17:35:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|