diff --git a/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift b/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift index b86db4e6c..802a298e4 100644 --- a/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift +++ b/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift @@ -109,7 +109,9 @@ final class PlaceholderView: UIView { let offset = keyboardHeight > 0 ? max(bounds.height / 2 - keyboardHeight, minOffsetFromTheKeyboardTop + stackView.frame.height) : containerModalYTranslation / 2 let maxOffset = bounds.height / 2 - maxOffsetFromTheTop centerYConstraint.constant = -min(offset, maxOffset) - layoutIfNeeded() + UIView.animate(withDuration: kDefaultAnimationDuration, delay: .zero, options: [.beginFromCurrentState, .curveEaseOut]) { + self.layoutIfNeeded() + } } }