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
1 changed files with 2 additions and 0 deletions

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