Fix vibrancy for new add web feed folder picker. Issue #1384

This commit is contained in:
Maurice Parker
2019-12-08 10:39:13 -07:00
parent a3dc787fb0
commit 4ad7cd7bdd
6 changed files with 107 additions and 7 deletions

View File

@@ -8,9 +8,19 @@
import UIKit
class AddWebFeedFolderTableViewCell: UITableViewCell {
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)
}
}