Skip to content

Commit

Permalink
fix: 🐛 IOSSDKBUG-347 layout incorrect for lots of filter items (#832)
Browse files Browse the repository at this point in the history
Co-authored-by: David Xu <dyongxu@gmail.com>
  • Loading branch information
dyongxu and davxu authored Oct 23, 2024
1 parent 7a36725 commit acdaa80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct SortFilterExample: View {
.switch(item: .init(name: "Favorite", value: true, icon: "heart.fill"), showsOnFilterFeedbackBar: true),
.switch(item: .init(name: "Tagged", value: nil, icon: "tag"), showsOnFilterFeedbackBar: false),
.picker(item: .init(name: "JIRA Status", value: [0], valueOptions: ["Received", "Started", "Hold", "Transfer", "Completed", "Pending Review Pending Pending Pending Pending Pending", "Accepted Medium", "Pending Medium", "Completed Medium"], allowsMultipleSelection: true, allowsEmptySelection: true, showsValueForSingleSelected: false, icon: "clock", itemLayout: .fixed, displayMode: .automatic), showsOnFilterFeedbackBar: true),
.picker(item: .init(name: "Filter Selection", value: [0], valueOptions: ["Received", "Started", "Hold", "Transfer", "Completed", "Pending Review Pending Pending Pending Pending Pending", "Accepted Medium", "Pending Medium", "Completed Medium"], allowsMultipleSelection: true, allowsEmptySelection: true, showsValueForSingleSelected: false, icon: "clock", itemLayout: .fixed, displayMode: .filterFormCell), showsOnFilterFeedbackBar: true)
.picker(item: .init(name: "Filter Selection", value: [0], valueOptions: ["Received", "Started", "Hold", "Transfer", "Completed", "Pending Review Pending Pending Pending Pending Pending", "Accepted Medium", "Pending Medium", "Completed Medium", "Checked", "Unchecked", "Partially Checked", "Checked and Unchecked", "Checked and Partially Checked", "Unchecked and Partially Checked", "Partially Checked and Unchecked", "Checked and Unchecked and Partially Checked", "Unchecked and Partially Checked and Partially Checked", "Partially Checked and Unchecked and Partially Checked", "Checked Finally", "Unchecked Finally", "Partially Checked Finally", "Checked and Unchecked Finally", "Checked and Partially Checked Finally", "Unchecked and Partially Checked Finally", "Partially Checked and Unchecked Finally", "Checked Finally and Partially Checked Finally", "Unchecked Finally and Partially Checked Finally", "Partially Checked Finally and Partially Checked Finally", "Review", "Reviewed", "To be Reviewed", "Pending for Review", "Booked", "To be Booked", "Will Book", "Booking Canceled"], allowsMultipleSelection: true, allowsEmptySelection: true, showsValueForSingleSelected: false, icon: "clock", itemLayout: .fixed, displayMode: .filterFormCell), showsOnFilterFeedbackBar: true)
],
[
.picker(item: .init(name: "Priority", value: [0], valueOptions: ["High", "Medium", "Low"], allowsMultipleSelection: true, allowsEmptySelection: true, showsValueForSingleSelected: false, icon: "filemenu.and.cursorarrow"), showsOnFilterFeedbackBar: true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct SliderMenuItem: View {
.onTapGesture {
self.isSheetVisible.toggle()
}
.popover(isPresented: self.$isSheetVisible) {
.popover(isPresented: self.$isSheetVisible, arrowEdge: .leading) {
CancellableResettableDialogForm {
SortFilterItemTitle(title: self.item.name)
} cancelAction: {
Expand Down Expand Up @@ -153,7 +153,7 @@ struct PickerMenuItem: View {
.onTapGesture {
self.isSheetVisible.toggle()
}
.popover(isPresented: self.$isSheetVisible) {
.popover(isPresented: self.$isSheetVisible, arrowEdge: .leading) {
CancellableResettableDialogForm {
SortFilterItemTitle(title: self.item.name)
} cancelAction: {
Expand Down Expand Up @@ -224,7 +224,7 @@ struct PickerMenuItem: View {
.onTapGesture {
self.isSheetVisible.toggle()
}
.popover(isPresented: self.$isSheetVisible) {
.popover(isPresented: self.$isSheetVisible, arrowEdge: .leading) {
CancellableResettableDialogNavigationForm {
SortFilterItemTitle(title: self.item.name)
} cancelAction: {
Expand Down Expand Up @@ -311,7 +311,7 @@ struct DateTimeMenuItem: View {
.onTapGesture {
self.isSheetVisible.toggle()
}
.popover(isPresented: self.$isSheetVisible) {
.popover(isPresented: self.$isSheetVisible, arrowEdge: .leading) {
CancellableResettableDialogForm {
SortFilterItemTitle(title: self.item.name)
} cancelAction: {
Expand Down Expand Up @@ -448,7 +448,7 @@ struct FullCFGMenuItem: View {
.onTapGesture {
self.isSheetVisible.toggle()
}
.popover(isPresented: self.$isSheetVisible) {
.popover(isPresented: self.$isSheetVisible, arrowEdge: .leading) {
SortFilterView(
title: {
if let title = fullCFGButton.name {
Expand Down

0 comments on commit acdaa80

Please sign in to comment.