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
88
88
89
89
transitionView. addSubview ( controller. view)
90
90
transitionVC. targetView? . alpha = 0.0
91
+ transitionVC. targetView? . tintColor = sourceView. tintColor
91
92
92
93
let dummyImageView = createDummyImageView (
93
94
frame: sourceView. frameRelativeToWindow ( ) ,
94
95
image: sourceView. image)
95
96
dummyImageView. contentMode = . scaleAspectFit
97
+ dummyImageView. tintColor = sourceView. tintColor
96
98
transitionView. addSubview ( dummyImageView)
97
99
98
100
UIView . animate ( withDuration: duration, animations: {
@@ -121,6 +123,7 @@ extension ImageViewerTransitionPresentationAnimator: UIViewControllerAnimatedTra
121
123
let dummyImageView = createDummyImageView (
122
124
frame: targetView? . frameRelativeToWindow ( ) ?? UIScreen . main. bounds,
123
125
image: targetView? . image)
126
+ dummyImageView. tintColor = sourceView? . tintColor
124
127
transitionView. addSubview ( dummyImageView)
125
128
targetView? . isHidden = true
126
129
You can’t perform that action at this time.
0 commit comments