From 4bf49211fd13896f37736ca5ec9cf24b023e920b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 30 Oct 2018 22:14:02 -0400 Subject: [PATCH] Fix large images being offset on some devices Closes #6 --- Tusker/Screens/Large Image/LargeImageViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Large Image/LargeImageViewController.swift b/Tusker/Screens/Large Image/LargeImageViewController.swift index bbd6937d31..8573c08049 100644 --- a/Tusker/Screens/Large Image/LargeImageViewController.swift +++ b/Tusker/Screens/Large Image/LargeImageViewController.swift @@ -106,6 +106,8 @@ class LargeImageViewController: UIViewController, UIScrollViewDelegate { scrollView.zoomScale = minScale scrollView.maximumZoomScale = minScale >= 1 ? minScale + 2 : 2 + centerImage() + if !initializedTopControlsConstrains { initializedTopControlsConstrains = true if view.safeAreaInsets.top == 44 {