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() {
|
override func layoutSubviews() {
|
||||||
imageView.setFrameIfNotEqual(rectForImageView())
|
imageView.setFrameIfNotEqual(rectForImageView())
|
||||||
if (isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
|
if (image != nil && isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
|
||||||
backgroundColor = AppAssets.avatarBackgroundColor
|
backgroundColor = AppAssets.avatarBackgroundColor
|
||||||
} else {
|
} else {
|
||||||
backgroundColor = nil
|
backgroundColor = nil
|
||||||
|
|
Loading…
Reference in New Issue