fix: make the profile banner preview move during pan and dimming when release
This commit is contained in:
parent
fec7b92d38
commit
3a7697f714
|
@ -23,8 +23,8 @@ extension MediaPreviewableViewController {
|
||||||
return mediaView.superview?.convert(mediaView.frame, to: nil)
|
return mediaView.superview?.convert(mediaView.frame, to: nil)
|
||||||
case .profileAvatar(let profileHeaderView):
|
case .profileAvatar(let profileHeaderView):
|
||||||
return profileHeaderView.avatarButton.superview?.convert(profileHeaderView.avatarButton.frame, to: nil)
|
return profileHeaderView.avatarButton.superview?.convert(profileHeaderView.avatarButton.frame, to: nil)
|
||||||
case .profileBanner:
|
case .profileBanner(let profileHeaderView):
|
||||||
return nil // fallback to snapshot.frame
|
return profileHeaderView.bannerImageView.superview?.convert(profileHeaderView.bannerImageView.frame, to: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue