mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix timeline secondary label coloring
This commit is contained in:
@@ -51,18 +51,18 @@ class VibrantTableViewCell: UITableViewCell {
|
||||
|
||||
/// Subclass overrides should call super
|
||||
func updateVibrancy(animated: Bool) {
|
||||
updateLabelVibrancy(textLabel, animated: animated)
|
||||
updateLabelVibrancy(detailTextLabel, animated: animated)
|
||||
updateLabelVibrancy(textLabel, color: labelColor, animated: animated)
|
||||
updateLabelVibrancy(detailTextLabel, color: labelColor, animated: animated)
|
||||
}
|
||||
|
||||
func duration(animated: Bool) -> TimeInterval {
|
||||
return animated ? 0.6 : 0.0
|
||||
}
|
||||
|
||||
func updateLabelVibrancy(_ label: UILabel?, animated: Bool) {
|
||||
func updateLabelVibrancy(_ label: UILabel?, color: UIColor, animated: Bool) {
|
||||
guard let label = label else { return }
|
||||
UIView.transition(with: label, duration: duration(animated: animated), options: .transitionCrossDissolve, animations: {
|
||||
label.textColor = self.labelColor
|
||||
label.textColor = color
|
||||
}, completion: nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user