Move dark image detection back to background queue

This commit is contained in:
Maurice Parker 2019-10-31 14:44:03 -05:00
parent 0f5210d92f
commit 3dd533ed0d

View File

@ -16,7 +16,7 @@ final class AvatarView: UIView {
imageView.image = image
if self.traitCollection.userInterfaceStyle == .dark {
DispatchQueue.global(qos: .default).async {
DispatchQueue.global(qos: .background).async {
if self.image?.isDark() ?? false {
DispatchQueue.main.async {
self.isDisconcernable = false