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) {
|
||||
super.viewWillAppear(animated)
|
||||
verticalCenteringConstraint.constant = contentView.height() / 2 + view.height() / 2
|
||||
view.layoutIfNeeded()
|
||||
verticalCenteringConstraint.constant = 0
|
||||
UIView.animate(withDuration: 0.25) {
|
||||
self.view.layoutIfNeeded()
|
||||
}
|
||||
// verticalCenteringConstraint.constant = contentView.height() / 2 + view.height() / 2
|
||||
// view.layoutIfNeeded()
|
||||
// verticalCenteringConstraint.constant = 0
|
||||
// UIView.animate(withDuration: 0.25) {
|
||||
// self.view.layoutIfNeeded()
|
||||
// }
|
||||
}
|
||||
|
||||
// MARK: Interaction
|
||||
|
|
Loading…
Reference in a new issue