From 4811747790727b0cd2770ac8a19afdbe36928dbb Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 16 Jan 2023 10:58:45 -0500 Subject: [PATCH] Fix crash when resuming search user activity in unloaded explore VC --- Tusker/Shortcuts/UserActivityManager.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Shortcuts/UserActivityManager.swift b/Tusker/Shortcuts/UserActivityManager.swift index 842b0446..5c854326 100644 --- a/Tusker/Shortcuts/UserActivityManager.swift +++ b/Tusker/Shortcuts/UserActivityManager.swift @@ -257,6 +257,7 @@ class UserActivityManager { if let navigationController = mainViewController.getTabController(tab: .explore) as? UINavigationController, let exploreController = navigationController.viewControllers.first as? ExploreViewController { navigationController.popToRootViewController(animated: false) + exploreController.loadViewIfNeeded() exploreController.searchController.isActive = true exploreController.searchController.searchBar.becomeFirstResponder() }