From 4b9f896a497bd51a365e4192618732d0214e9f0a Mon Sep 17 00:00:00 2001 From: Mihael Cholakov Date: Tue, 14 Jan 2020 17:49:43 +0200 Subject: [PATCH] Fix UIView.transition view to be the icon --- iOS/UIKit Extensions/VibrantTableViewCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/UIKit Extensions/VibrantTableViewCell.swift b/iOS/UIKit Extensions/VibrantTableViewCell.swift index 902c8bf81..dfa4af493 100644 --- a/iOS/UIKit Extensions/VibrantTableViewCell.swift +++ b/iOS/UIKit Extensions/VibrantTableViewCell.swift @@ -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)