Set a solid background on the blurhash view in case it doesn’t load (#1069)
This commit is contained in:
parent
09ff88d0b6
commit
5cf681e2d7
|
@ -30,6 +30,8 @@ public final class MediaView: UIView {
|
|||
imageView.contentMode = .scaleAspectFill
|
||||
imageView.isUserInteractionEnabled = false
|
||||
imageView.layer.masksToBounds = true // clip overflow
|
||||
imageView.backgroundColor = .gray
|
||||
imageView.isOpaque = true
|
||||
return imageView
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue