Supply a background for the icon if it is too short or hard to see. Issue #2220

This commit is contained in:
Maurice Parker
2020-07-20 21:01:25 -05:00
parent c0e9f28398
commit e315687cc9
5 changed files with 65 additions and 26 deletions

View File

@@ -76,7 +76,7 @@ final class IconView: UIView {
override func layoutSubviews() {
imageView.setFrameIfNotEqual(rectForImageView())
if (iconImage != nil && isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
backgroundColor = AppAssets.iconBackgroundColor
backgroundColor = AppAssets.uiIconBackgroundColor
} else {
backgroundColor = nil
}