Disable not-so-amazing animation

This commit is contained in:
nielsandriesse 2020-05-29 14:35:54 +10:00
parent 7b95d33612
commit 2b6f32bebb

View file

@ -54,12 +54,12 @@ class Modal : BaseVC {
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewWillAppear(animated)
verticalCenteringConstraint.constant = contentView.height() / 2 + view.height() / 2 // verticalCenteringConstraint.constant = contentView.height() / 2 + view.height() / 2
view.layoutIfNeeded() // view.layoutIfNeeded()
verticalCenteringConstraint.constant = 0 // verticalCenteringConstraint.constant = 0
UIView.animate(withDuration: 0.25) { // UIView.animate(withDuration: 0.25) {
self.view.layoutIfNeeded() // self.view.layoutIfNeeded()
} // }
} }
// MARK: Interaction // MARK: Interaction