mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
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…
x
Reference in New Issue
Block a user