1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-03 10:47:35 +01:00

Set a solid background on the blurhash view in case it doesn’t load (#1069)

This commit is contained in:
Jed Fox 2023-06-26 05:08:18 -04:00 committed by GitHub
parent 09ff88d0b6
commit 5cf681e2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}()