Skip to content

Commit 2d47332

Browse files
authoredMar 12, 2025
Bugfix FXIOS-11576 ⁃ Weird animation when the search view is shown (#25235)
FXIOS-11576 #25206 ⁃ Weird animation when the search view is shown
1 parent a5b6d0f commit 2d47332

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed
 

‎firefox-ios/Client/Frontend/Browser/Search/SearchViewController.swift

+3-15
Original file line numberDiff line numberDiff line change
@@ -378,21 +378,21 @@ class SearchViewController: SiteTableViewController,
378378
_ keyboardHelper: KeyboardHelper,
379379
keyboardWillShowWithState state: KeyboardState
380380
) {
381-
animateSearchEnginesWithKeyboard(state)
381+
layoutSearchEngineScrollView()
382382
}
383383

384384
func keyboardHelper(
385385
_ keyboardHelper: KeyboardHelper,
386386
keyboardWillHideWithState state: KeyboardState
387387
) {
388-
animateSearchEnginesWithKeyboard(state)
388+
layoutSearchEngineScrollView()
389389
}
390390

391391
func keyboardHelper(
392392
_ keyboardHelper: KeyboardHelper,
393393
keyboardWillChangeWithState state: KeyboardState
394394
) {
395-
animateSearchEnginesWithKeyboard(state)
395+
layoutSearchEngineScrollView()
396396
}
397397

398398
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
@@ -404,18 +404,6 @@ class SearchViewController: SiteTableViewController,
404404
}, completion: nil)
405405
}
406406

407-
private func animateSearchEnginesWithKeyboard(_ keyboardState: KeyboardState) {
408-
layoutSearchEngineScrollView()
409-
410-
UIView.animate(
411-
withDuration: keyboardState.animationDuration,
412-
delay: 0,
413-
options: [UIView.AnimationOptions(rawValue: UInt(keyboardState.animationCurve.rawValue << 16))],
414-
animations: {
415-
self.view.layoutIfNeeded()
416-
})
417-
}
418-
419407
private func getCachedTabs() {
420408
// Short circuit if the user is not logged in
421409
guard profile.hasSyncableAccount() else { return }

0 commit comments

Comments
 (0)
Failed to load comments.