From 130691db3415d451af0ef82e19ca2e465b69115a Mon Sep 17 00:00:00 2001 From: Flowinho Date: Fri, 13 Mar 2020 14:21:38 +0100 Subject: [PATCH] Revert to old logic --- iOS/IconView.swift | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/iOS/IconView.swift b/iOS/IconView.swift index 5a521844c..7ce9faf3f 100644 --- a/iOS/IconView.swift +++ b/iOS/IconView.swift @@ -16,9 +16,21 @@ final class IconView: UIView { imageView.image = iconImage?.image if self.traitCollection.userInterfaceStyle == .dark { - self.isDisconcernable = !(self.iconImage?.isDark ?? true) + if self.iconImage?.isDark ?? false { + self.isDisconcernable = false + self.setNeedsLayout() + } else { + self.isDisconcernable = true + self.setNeedsLayout() + } } else { - self.isDisconcernable = !(self.iconImage?.isBright ?? true) + if self.iconImage?.isBright ?? false { + self.isDisconcernable = false + self.setNeedsLayout() + } else { + self.isDisconcernable = true + self.setNeedsLayout() + } } self.setNeedsLayout() }