Fix UIView.transition view to be the icon

This commit is contained in:
Mihael Cholakov 2020-01-14 17:49:43 +02:00
parent 8df0067813
commit 4b9f896a49

View File

@ -92,7 +92,7 @@ class VibrantBasicTableViewCell: VibrantTableViewCell {
private func updateIconVibrancy(_ icon: UIImageView?, color: UIColor, image: UIImage?, animated: Bool) {
guard let icon = icon else { return }
UIView.transition(with: label, duration: duration(animated: animated), options: .transitionCrossDissolve, animations: {
UIView.transition(with: icon, duration: duration(animated: animated), options: .transitionCrossDissolve, animations: {
icon.tintColor = color
icon.image = image
}, completion: nil)