|
|
@ -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
|
|
|
|