diff --git a/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift b/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift index 36ac26d5e2..4a0369cbd0 100644 --- a/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift +++ b/Packages/GalleryVC/Sources/GalleryVC/GalleryItemViewController.swift @@ -81,10 +81,10 @@ class GalleryItemViewController: UIViewController { overlayVC.view.translatesAutoresizingMaskIntoConstraints = false view.addSubview(overlayVC.view) NSLayoutConstraint.activate([ - overlayVC.view.leadingAnchor.constraint(equalTo: content.view.leadingAnchor), - overlayVC.view.trailingAnchor.constraint(equalTo: content.view.trailingAnchor), - overlayVC.view.topAnchor.constraint(equalTo: content.view.topAnchor), - overlayVC.view.bottomAnchor.constraint(equalTo: content.view.bottomAnchor), + overlayVC.view.leadingAnchor.constraint(equalTo: view.leadingAnchor), + overlayVC.view.trailingAnchor.constraint(equalTo: view.trailingAnchor), + overlayVC.view.topAnchor.constraint(equalTo: view.topAnchor), + overlayVC.view.bottomAnchor.constraint(equalTo: view.bottomAnchor), ]) }