Remove zero duration animations.

This commit is contained in:
Maurice Parker
2020-10-22 18:56:33 -05:00
parent 642eb1ae33
commit 18726d061d
6 changed files with 46 additions and 14 deletions

View File

@@ -17,7 +17,11 @@ class AddComboTableViewCell: VibrantTableViewCell {
super.updateVibrancy(animated: animated)
let iconTintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
UIView.animate(withDuration: duration(animated: animated)) {
if animated {
UIView.animate(withDuration: Self.duration) {
self.icon.tintColor = iconTintColor
}
} else {
self.icon.tintColor = iconTintColor
}
updateLabelVibrancy(label, color: labelColor, animated: animated)