optimise open group suggestion grid hiding animation

This commit is contained in:
Ryan Zhao 2022-03-11 13:25:58 +11:00
parent b8463585fa
commit b80fde69ca

View file

@ -275,6 +275,7 @@ private final class EnterURLVC : UIViewController, UIGestureRecognizerDelegate,
UIView.animate(withDuration: 0.25) {
self.view.layoutIfNeeded()
self.suggestionGridStackView.isHidden = true
self.suggestionGridStackView.alpha = 0
}
}
@ -285,6 +286,7 @@ private final class EnterURLVC : UIViewController, UIGestureRecognizerDelegate,
UIView.animate(withDuration: 0.25) {
self.view.layoutIfNeeded()
self.suggestionGridStackView.isHidden = false
self.suggestionGridStackView.alpha = 1
}
}
}