fix: dimming profile banner directly when dismiss via tap space area
This commit is contained in:
parent
3a7697f714
commit
5b4fcdf0c0
|
@ -217,7 +217,13 @@ extension MediaHostToMediaPreviewViewControllerAnimatedTransitioning {
|
||||||
if !isInteractive {
|
if !isInteractive {
|
||||||
animator.addAnimations {
|
animator.addAnimations {
|
||||||
if let targetFrame = targetFrame {
|
if let targetFrame = targetFrame {
|
||||||
self.transitionItem.snapshotTransitioning?.frame = targetFrame
|
switch self.transitionItem.source {
|
||||||
|
case .profileBanner:
|
||||||
|
fromView.alpha = 0
|
||||||
|
self.transitionItem.snapshotTransitioning?.alpha = 0
|
||||||
|
default:
|
||||||
|
self.transitionItem.snapshotTransitioning?.frame = targetFrame
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fromView.alpha = 0
|
fromView.alpha = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue