Fix constraint issues

pull/220/head
nielsandriesse 5 years ago
parent 58fbd16286
commit d18940317b

@ -181,8 +181,8 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou
self.view.addSubview(bottomContainer)
bottomContainer.autoPinWidthToSuperview()
bottomContainer.autoPinEdge(toSuperviewSafeArea: .bottom)
footerBar.autoPinEdge(toSuperviewSafeArea: .bottom)
bottomContainer.autoPinEdge(.bottom, to: .bottom, of: view)
footerBar.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true
footerBar.autoSetDimension(.height, toSize: 44)
updateTitle()

@ -533,7 +533,7 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa
// show toolbar
UIView.animate(withDuration: 0.1, delay: 0, options: .curveEaseInOut, animations: {
NSLayoutConstraint.deactivate([self.footerBarBottomConstraint])
self.footerBarBottomConstraint = self.footerBar.autoPinEdge(.bottom, to: .bottom, of: self.view)
self.footerBarBottomConstraint = self.footerBar.autoPinEdge(toSuperviewSafeArea: .bottom)
self.footerBar.superview?.layoutIfNeeded()

Loading…
Cancel
Save