From 493cab35f3be7558bcd1d21a778b44664d16ae33 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 bbd6937d..8573c080 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 {