From ff7b0b7da941c481a2048a0c58caefe3cf58e38b Mon Sep 17 00:00:00 2001 From: "Gu, Jiajun (external - Project)" Date: Tue, 12 Nov 2024 14:34:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20[IOSSDKBUG-416]FilterFeed?= =?UTF-8?q?backBar=20on=20iPad=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/OptionListPickerItem+View.swift | 8 ++++++-- .../Views/SortFilter/FilterFeedbackBarItem+View.swift | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Sources/FioriSwiftUICore/Views/OptionListPickerItem+View.swift b/Sources/FioriSwiftUICore/Views/OptionListPickerItem+View.swift index 6f1ff5901..1dbe861e0 100644 --- a/Sources/FioriSwiftUICore/Views/OptionListPickerItem+View.swift +++ b/Sources/FioriSwiftUICore/Views/OptionListPickerItem+View.swift @@ -71,7 +71,9 @@ extension OptionListPickerItem: View { } ) } - .frame(height: _height) + .ifApply(UIDevice.current.userInterfaceIdiom == .phone, content: { v in + v.frame(height: _height) + }) } private func generateFlexibleContent() -> some View { @@ -102,7 +104,9 @@ extension OptionListPickerItem: View { } ) } - .frame(height: _height) + .ifApply(UIDevice.current.userInterfaceIdiom == .phone, content: { v in + v.frame(height: _height) + }) } private func getSafeAreaInsets() -> UIEdgeInsets { diff --git a/Sources/FioriSwiftUICore/Views/SortFilter/FilterFeedbackBarItem+View.swift b/Sources/FioriSwiftUICore/Views/SortFilter/FilterFeedbackBarItem+View.swift index 55b848b42..a9a0ed059 100644 --- a/Sources/FioriSwiftUICore/Views/SortFilter/FilterFeedbackBarItem+View.swift +++ b/Sources/FioriSwiftUICore/Views/SortFilter/FilterFeedbackBarItem+View.swift @@ -183,6 +183,9 @@ struct PickerMenuItem: View { } .padding([.leading, .trailing], UIDevice.current.userInterfaceIdiom == .pad ? 13 : 16) } + .ifApply(UIDevice.current.userInterfaceIdiom != .phone, content: { v in + v.frame(minHeight: 155) + }) .readHeight() .onPreferenceChange(HeightPreferenceKey.self) { height in if let height {