From 42bccc2feaa327b2b5fad3a405cec880d3300528 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 15 Oct 2019 20:13:08 -0500 Subject: [PATCH] Remove obsolete code --- iOS/Article/ImageScrollView.swift | 2 +- iOS/Article/ImageTransition.swift | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iOS/Article/ImageScrollView.swift b/iOS/Article/ImageScrollView.swift index b807c929c..93292a06b 100644 --- a/iOS/Article/ImageScrollView.swift +++ b/iOS/Article/ImageScrollView.swift @@ -43,7 +43,7 @@ open class ImageScrollView: UIScrollView { var maxScaleFromMinScale: CGFloat = 3.0 var zoomedFrame: CGRect { - return convert(zoomView?.frame ?? CGRect.zero, to: nil) + return zoomView?.frame ?? CGRect.zero } override open var frame: CGRect { diff --git a/iOS/Article/ImageTransition.swift b/iOS/Article/ImageTransition.swift index 8b66a2baf..35d0372eb 100644 --- a/iOS/Article/ImageTransition.swift +++ b/iOS/Article/ImageTransition.swift @@ -54,7 +54,6 @@ class ImageTransition: NSObject, UIViewControllerAnimatedTransitioning { imageView.removeFromSuperview() let toView = transitionContext.view(forKey: .to)! transitionContext.containerView.addSubview(toView) - transitionContext.containerView.bringSubviewToFront(toView) transitionContext.completeTransition(true) })