mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
30 lines
767 B
Swift
30 lines
767 B
Swift
//
|
|
// SettingsAccountTableViewCell.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Maurice Parker on 10/23/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
final class SettingsComboTableViewCell: VibrantTableViewCell {
|
|
@IBOutlet var comboImage: UIImageView!
|
|
@IBOutlet var comboNameLabel: UILabel!
|
|
|
|
override func updateVibrancy(animated: Bool) {
|
|
super.updateVibrancy(animated: animated)
|
|
updateLabelVibrancy(comboNameLabel, color: labelColor, animated: animated)
|
|
|
|
let tintColor = isHighlighted || isSelected ? Assets.Colors.vibrantText : UIColor.label
|
|
if animated {
|
|
UIView.animate(withDuration: Self.duration) {
|
|
self.comboImage?.tintColor = tintColor
|
|
}
|
|
} else {
|
|
self.comboImage?.tintColor = tintColor
|
|
}
|
|
}
|
|
|
|
}
|