From b54d34ebfcf7ec7df2b3e5c7a9789ef24619a59d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 26 Aug 2024 19:16:35 -0400 Subject: [PATCH] Fix video controls overlay being positioned incorrectly on macOS with Reduce Motion enabled Closes #535 --- .../Sources/GalleryVC/GalleryItemViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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), ]) }