From 6c6ab615c78a49aeb1f7a4b3df648973538eb369 Mon Sep 17 00:00:00 2001 From: CMK Date: Fri, 2 Jul 2021 14:01:31 +0800 Subject: [PATCH] fix: profile avatar can not preview issue --- Mastodon/Scene/Profile/Header/View/ProfileHeaderView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mastodon/Scene/Profile/Header/View/ProfileHeaderView.swift b/Mastodon/Scene/Profile/Header/View/ProfileHeaderView.swift index abeac9855..df1eaeb8e 100644 --- a/Mastodon/Scene/Profile/Header/View/ProfileHeaderView.swift +++ b/Mastodon/Scene/Profile/Header/View/ProfileHeaderView.swift @@ -86,7 +86,11 @@ final class ProfileHeaderView: UIView { } static let avatarImageViewOverlayBlurEffect = UIBlurEffect(style: .systemUltraThinMaterialDark) - let avatarImageViewOverlayVisualEffectView = UIVisualEffectView(effect: nil) + let avatarImageViewOverlayVisualEffectView: UIVisualEffectView = { + let visualEffectView = UIVisualEffectView(effect: nil) + visualEffectView.isUserInteractionEnabled = false + return visualEffectView + }() let editAvatarBackgroundView: UIView = { let view = UIView()