2019-10-23 10:35:53 -05: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 08:25:40 -05:00
|
|
|
class SettingsComboTableViewCell: VibrantTableViewCell {
|
2019-10-23 10:35:53 -05:00
|
|
|
|
2020-04-16 08:25:40 -05:00
|
|
|
@IBOutlet weak var comboImage: UIImageView!
|
|
|
|
@IBOutlet weak var comboNameLabel: UILabel!
|
2019-10-23 10:35:53 -05:00
|
|
|
|
2019-11-02 19:57:01 -05:00
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
|
|
super.updateVibrancy(animated: animated)
|
2020-04-16 08:25:40 -05:00
|
|
|
updateLabelVibrancy(comboNameLabel, color: labelColor, animated: animated)
|
2019-11-02 19:57:01 -05:00
|
|
|
|
2019-10-23 10:35:53 -05:00
|
|
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
2020-10-22 18:56:33 -05:00
|
|
|
if animated {
|
|
|
|
UIView.animate(withDuration: Self.duration) {
|
|
|
|
self.comboImage?.tintColor = tintColor
|
|
|
|
}
|
|
|
|
} else {
|
2020-04-16 08:25:40 -05:00
|
|
|
self.comboImage?.tintColor = tintColor
|
2019-10-23 11:47:21 -05:00
|
|
|
}
|
2019-10-23 10:35:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|