From 352db36c560592c95a7666215dd031227797ccd1 Mon Sep 17 00:00:00 2001 From: Nuo Xu Date: Wed, 18 Dec 2024 12:30:39 -0500 Subject: [PATCH] move the tabbar reload from viewDidLayoutSubviews to navigateInTab to resolve the issue that users cannot scroll tabbar --- .../Browser/BrowserViewController/BrowserViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController.swift b/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController.swift index d5fd2115e073..5705f7d2abe9 100644 --- a/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController.swift +++ b/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController.swift @@ -1209,8 +1209,6 @@ public class BrowserViewController: UIViewController { } searchController?.additionalSafeAreaInsets = additionalInsets favoritesController?.additionalSafeAreaInsets = additionalInsets - - tabsBar.reloadDataAndRestoreSelectedTab(isAnimated: false) } override public var canBecomeFirstResponder: Bool { @@ -2351,6 +2349,8 @@ public class BrowserViewController: UIViewController { TabEvent.post(.didChangeURL(url), for: tab) } + tabsBar.reloadDataAndRestoreSelectedTab(isAnimated: false) + if tab === tabManager.selectedTab { updateStatusBarOverlayColor()