Make unread indicator animatable

This commit is contained in:
Maurice Parker
2019-11-02 20:15:48 -05:00
parent 8fb87a7c87
commit 3f46c0e939
2 changed files with 9 additions and 26 deletions

View File

@@ -47,7 +47,11 @@ class MasterTimelineTableViewCell: VibrantTableViewCell {
updateLabelVibrancy(feedNameView, animated: animated)
UIView.animate(withDuration: duration(animated: animated)) {
self.unreadIndicatorView.isSelected = self.isHighlighted || self.isSelected
if self.isHighlighted || self.isSelected {
self.unreadIndicatorView.backgroundColor = AppAssets.vibrantTextColor
} else {
self.unreadIndicatorView.backgroundColor = AppAssets.secondaryAccentColor
}
}
}