fix: make the profile banner preview move during pan and dimming when release

This commit is contained in:
CMK 2022-07-15 03:42:41 +08:00
parent fec7b92d38
commit 3a7697f714
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ extension MediaPreviewableViewController {
return mediaView.superview?.convert(mediaView.frame, to: nil)
case .profileAvatar(let profileHeaderView):
return profileHeaderView.avatarButton.superview?.convert(profileHeaderView.avatarButton.frame, to: nil)
case .profileBanner:
return nil // fallback to snapshot.frame
case .profileBanner(let profileHeaderView):
return profileHeaderView.bannerImageView.superview?.convert(profileHeaderView.bannerImageView.frame, to: nil)
}
}
}