File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Sources/ImageViewer_swift Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,13 @@ extension ImageViewerTransitionPresentationAnimator: UIViewControllerAnimatedTra
8888
8989 transitionView. addSubview ( controller. view)
9090 transitionVC. targetView? . alpha = 0.0
91+ transitionVC. targetView? . tintColor = sourceView. tintColor
9192
9293 let dummyImageView = createDummyImageView (
9394 frame: sourceView. frameRelativeToWindow ( ) ,
9495 image: sourceView. image)
9596 dummyImageView. contentMode = . scaleAspectFit
97+ dummyImageView. tintColor = sourceView. tintColor
9698 transitionView. addSubview ( dummyImageView)
9799
98100 UIView . animate ( withDuration: duration, animations: {
@@ -121,6 +123,7 @@ extension ImageViewerTransitionPresentationAnimator: UIViewControllerAnimatedTra
121123 let dummyImageView = createDummyImageView (
122124 frame: targetView? . frameRelativeToWindow ( ) ?? UIScreen . main. bounds,
123125 image: targetView? . image)
126+ dummyImageView. tintColor = sourceView? . tintColor
124127 transitionView. addSubview ( dummyImageView)
125128 targetView? . isHidden = true
126129
You can’t perform that action at this time.
0 commit comments