diff --git a/iOS/MasterTimeline/MasterTimelineViewController.swift b/iOS/MasterTimeline/MasterTimelineViewController.swift index b89a27d4b..c45568971 100644 --- a/iOS/MasterTimeline/MasterTimelineViewController.swift +++ b/iOS/MasterTimeline/MasterTimelineViewController.swift @@ -198,6 +198,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner updateUI() } + + func hideSearch() { + navigationItem.searchController?.isActive = false + } func showSearchAll() { navigationItem.searchController?.isActive = true diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 8158c7a0f..9a2105f6c 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -940,6 +940,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } func discloseFeed(_ feed: WebFeed, animated: Bool, completion: (() -> Void)? = nil) { + if isSearching { + masterTimelineViewController?.hideSearch() + } + masterFeedViewController.discloseFeed(feed, animated: animated) { completion?() }