Hey @DTS Engineer, thanks for the suggestion. I tried it and whilst it seems better than it was I can still clearly see that the image isn't centered properly. I just cannot comprehend the way UINavigationController affects the layout.
Edit: Also, there is this strange behavior with scrollViewDidZoom(_:) method that I found. Basically, when I present this PhotoViewController inside the UINavigationController context either as a root view controller or as a pushed view controller scrollViewDidZoom(_:) always gets called instantly even before the user actually zooms. However, when I present PhotoViewController outside the UINavigationController hierarchy then scrollViewDidZoom(_:) method doesn't get called until the user starts zooming. I have no idea why that happens
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: