mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Disable not-so-amazing animation
This commit is contained in:
parent
7b95d33612
commit
2b6f32bebb
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue