From 4d21c7831edc7db9fd23f9d28c2d7df8d2714ec6 Mon Sep 17 00:00:00 2001 From: restaurantt Date: Tue, 19 Nov 2024 10:52:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20[IOSSDKBUG-454]FilterFeed?= =?UTF-8?q?backBar=20dark=20mode=20design=20(#891)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CancellableResettableForm.swift | 31 +++++++++---------- .../Views/SearchListPickerItem+View.swift | 4 ++- .../SortFilter/SortFilterView+View.swift | 1 - .../_SortFilterCFGItemContainer.swift | 5 ++- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Sources/FioriSwiftUICore/Components/CancellableResettableForm.swift b/Sources/FioriSwiftUICore/Components/CancellableResettableForm.swift index 972922ddb..068a69493 100644 --- a/Sources/FioriSwiftUICore/Components/CancellableResettableForm.swift +++ b/Sources/FioriSwiftUICore/Components/CancellableResettableForm.swift @@ -77,15 +77,20 @@ struct CancellableResettableDialogNavigationForm { scrollView in diff --git a/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift b/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift index a802fa140..388bcc299 100644 --- a/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift +++ b/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift @@ -83,7 +83,6 @@ extension SortFilterView: View { } #if !os(visionOS) .frame(minWidth: UIDevice.current.userInterfaceIdiom != .phone ? 393.0 : nil) - .background(Color.preferredColor(.chromeSecondary)) #else .frame(minWidth: 480.0) .background(Color.clear) diff --git a/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift b/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift index abeabfec1..4b368b0e5 100644 --- a/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift +++ b/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift @@ -40,8 +40,9 @@ extension _SortFilterCFGItemContainer: View { .padding([.leading, .trailing], UIDevice.current.userInterfaceIdiom != .phone ? 13 : 16) .frame(width: UIDevice.current.userInterfaceIdiom != .phone ? self.popoverWidth : nil) } - } footer: { Rectangle().fill(Color.preferredColor(.primaryGroupedBackground)) + .frame(height: 30) + .listRowInsets(EdgeInsets()) } .listSectionSeparator(.hidden, edges: .all) .listRowInsets(EdgeInsets()) @@ -53,6 +54,8 @@ extension _SortFilterCFGItemContainer: View { .frame(width: UIDevice.current.userInterfaceIdiom != .phone ? self.popoverWidth : nil) .frame(height: self.height) .background(Color.preferredColor(.secondaryGroupedBackground)) + .environment(\.defaultMinListRowHeight, 0) + .environment(\.defaultMinListHeaderHeight, 0) .modifier(FioriIntrospectModifier { scrollView in DispatchQueue.main.async { let popverHeight = Screen.bounds.size.height