Fix video controls overlay being positioned incorrectly on macOS with Reduce Motion enabled
Closes #535
This commit is contained in:
parent
d1ffab3e42
commit
b54d34ebfc
|
@ -81,10 +81,10 @@ class GalleryItemViewController: UIViewController {
|
||||||
overlayVC.view.translatesAutoresizingMaskIntoConstraints = false
|
overlayVC.view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
view.addSubview(overlayVC.view)
|
view.addSubview(overlayVC.view)
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
overlayVC.view.leadingAnchor.constraint(equalTo: content.view.leadingAnchor),
|
overlayVC.view.leadingAnchor.constraint(equalTo: view.leadingAnchor),
|
||||||
overlayVC.view.trailingAnchor.constraint(equalTo: content.view.trailingAnchor),
|
overlayVC.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
|
||||||
overlayVC.view.topAnchor.constraint(equalTo: content.view.topAnchor),
|
overlayVC.view.topAnchor.constraint(equalTo: view.topAnchor),
|
||||||
overlayVC.view.bottomAnchor.constraint(equalTo: content.view.bottomAnchor),
|
overlayVC.view.bottomAnchor.constraint(equalTo: view.bottomAnchor),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue