From 4a21bd42b299b3d0e506d623b6062b997e18dc29 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 12 Dec 2023 10:59:29 +0800 Subject: [PATCH] Dont show saved search filter on iPad in header as its hard to keep them in sync --- .../App/Views/Home/HomeFeedViewIOS.swift | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 608551633..d978cb403 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -393,21 +393,23 @@ struct AnimatingCellHeight: AnimatableModifier { viewModel.searchTerm = "" }.frame(maxWidth: reader.size.width * 0.66) } else { - Menu( - content: { - ForEach(viewModel.filters) { filter in - Button(filter.name, action: { - viewModel.appliedFilter = filter - }) + if UIDevice.isIPhone { + Menu( + content: { + ForEach(viewModel.filters) { filter in + Button(filter.name, action: { + viewModel.appliedFilter = filter + }) + } + }, + label: { + TextChipButton.makeMenuButton( + title: viewModel.appliedFilter?.name ?? "-", + color: .systemGray6 + ) } - }, - label: { - TextChipButton.makeMenuButton( - title: viewModel.appliedFilter?.name ?? "-", - color: .systemGray6 - ) - } - ) + ) + } } Menu( content: {