Don't incorrectly assign an avatar background when there isn't an image
This commit is contained in:
parent
8d85d01da4
commit
30da68218f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue