From dfa45434accedbce911f5107052823fed9d717bd Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Fri, 13 Jun 2025 17:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Makes=20sure=20search=20bar=20is?= =?UTF-8?q?=20added=20to=20phone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/MainTimeline/MainTimelineViewController.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift index 3f9e334a9..8f914f809 100644 --- a/iOS/MainTimeline/MainTimelineViewController.swift +++ b/iOS/MainTimeline/MainTimelineViewController.swift @@ -143,13 +143,12 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner { NSLocalizedString("Here", comment: "Here"), NSLocalizedString("All Articles", comment: "All Articles") ] - + navigationItem.searchController = searchController // If the device is an iPad, the search bar is detached and placed // in the top right of the article view. When that is the case, search is // defaulted to "All Articles" as it is global. if UIDevice.current.userInterfaceIdiom == .pad { searchController.searchBar.selectedScopeButtonIndex = 1 - navigationItem.searchController = searchController navigationItem.searchBarPlacementAllowsExternalIntegration = UIDevice.current.userInterfaceIdiom == .pad } definesPresentationContext = true