fix: blurhash image not display during image loading issue

This commit is contained in:
CMK 2022-02-15 20:12:53 +08:00
parent 18a902c8ae
commit 4c41e94f8d
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ extension MediaView {
.receive(on: DispatchQueue.main)
.sink { [weak self] isReveal, previewImage, blurhashImage in
guard let self = self else { return }
let image = isReveal ? previewImage : blurhashImage
let image = isReveal ? (previewImage ?? blurhashImage) : blurhashImage
self.imageView.image = image
}
.store(in: &configuration.disposeBag)