@@ -378,21 +378,21 @@ class SearchViewController: SiteTableViewController,
378
378
_ keyboardHelper: KeyboardHelper ,
379
379
keyboardWillShowWithState state: KeyboardState
380
380
) {
381
- animateSearchEnginesWithKeyboard ( state )
381
+ layoutSearchEngineScrollView ( )
382
382
}
383
383
384
384
func keyboardHelper(
385
385
_ keyboardHelper: KeyboardHelper ,
386
386
keyboardWillHideWithState state: KeyboardState
387
387
) {
388
- animateSearchEnginesWithKeyboard ( state )
388
+ layoutSearchEngineScrollView ( )
389
389
}
390
390
391
391
func keyboardHelper(
392
392
_ keyboardHelper: KeyboardHelper ,
393
393
keyboardWillChangeWithState state: KeyboardState
394
394
) {
395
- animateSearchEnginesWithKeyboard ( state )
395
+ layoutSearchEngineScrollView ( )
396
396
}
397
397
398
398
override func viewWillTransition( to size: CGSize , with coordinator: UIViewControllerTransitionCoordinator ) {
@@ -404,18 +404,6 @@ class SearchViewController: SiteTableViewController,
404
404
} , completion: nil )
405
405
}
406
406
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
-
419
407
private func getCachedTabs( ) {
420
408
// Short circuit if the user is not logged in
421
409
guard profile. hasSyncableAccount ( ) else { return }
0 commit comments