Skip to content

Commit

Permalink
fix: 🐛 [IOSSDKBUG-416]FilterFeedbackBar on iPad layout (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
restaurantt authored Nov 12, 2024
1 parent 74a403c commit c6a5e9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c6a5e9e

Please sign in to comment.