From 30da68218f44bd681ea4d54971100cedad4b0b84 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 30 Oct 2019 15:46:20 -0500 Subject: [PATCH] Don't incorrectly assign an avatar background when there isn't an image --- iOS/AvatarView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/AvatarView.swift b/iOS/AvatarView.swift index 265ee8042..1e0cc956d 100644 --- a/iOS/AvatarView.swift +++ b/iOS/AvatarView.swift @@ -74,7 +74,7 @@ final class AvatarView: UIView { override func layoutSubviews() { imageView.setFrameIfNotEqual(rectForImageView()) - if (isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable { + if (image != nil && isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable { backgroundColor = AppAssets.avatarBackgroundColor } else { backgroundColor = nil