From 23366383505ec693bb89ca7357d486e0530aff48 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 17 Jan 2026 00:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=BB=20Del=20duplicate=20refresh=20cont?= =?UTF-8?q?rol+add=20large=20titles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/MainFeed/MainFeedCollectionViewController.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/iOS/MainFeed/MainFeedCollectionViewController.swift b/iOS/MainFeed/MainFeedCollectionViewController.swift index 55cd375f6..2f6e43d8b 100644 --- a/iOS/MainFeed/MainFeedCollectionViewController.swift +++ b/iOS/MainFeed/MainFeedCollectionViewController.swift @@ -71,12 +71,14 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab updateUI() super.viewWillAppear(animated) - collectionView.refreshControl = UIRefreshControl() - collectionView.refreshControl!.addTarget(self, action: #selector(refreshAccounts(_:)), for: .valueChanged) - if traitCollection.userInterfaceIdiom == .phone { - self.navigationController?.navigationBar.prefersLargeTitles = false - + self.navigationController?.navigationBar.prefersLargeTitles = true + self.navigationItem.largeTitleDisplayMode = .always + DispatchQueue.main.async { + /// This sizes the navigation bar to large. + self.navigationController?.navigationBar.sizeToFit() + } + /// On iPhone, we want to deselect the feed when the user navigates /// back to the feeds view. To prevent the user from selecting a new feed while /// the current feed is being deselected, set `isAnimating` to true.