Skip to content

Commit 0d69ae5

Browse files
committed
Update BlurHashView.swift
1 parent 9441de8 commit 0d69ae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Shared/Views/BlurHashView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class UIBlurHashView: UIView {
3131

3232
super.init(frame: .zero)
3333

34-
computeBlurHashImageAsync(blurHash: blurHash) { blurImage in
34+
computeBlurHashImageAsync(blurHash: blurHash) { [weak self] blurImage in
35+
guard let self = self else { return }
3536
DispatchQueue.main.async {
3637
self.imageView.image = blurImage
3738
self.imageView.setNeedsDisplay()

0 commit comments

Comments
 (0)