diff --git a/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift b/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift index b41f73975..3c5df9123 100644 --- a/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift +++ b/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift @@ -69,6 +69,10 @@ class GalleryItemViewController: UIViewController { scrollView = UIScrollView() scrollView.translatesAutoresizingMaskIntoConstraints = false scrollView.delegate = self + // We calculate zoom/position ignoring the safe area, so content insets need to not incorporate it either. + // Otherwise, content that fills the screen (extending into the safe area) may still end up scrollable + // (this is readily observable with tall images on a landscape iPad). + scrollView.contentInsetAdjustmentBehavior = .never view.addSubview(scrollView)