Skip to content

Commit 9a1c5e0

Browse files
committed
Fix picker bug.
1 parent 0b8bae3 commit 9a1c5e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Shared/Samples/Style geometry types with symbols/StyleGeometryTypesWithSymbolsView.Views.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ private struct EnumerationPicker<T: LabeledEnumeration>: View {
168168
Text(style.label)
169169
}
170170
}
171+
#if targetEnvironment(macCatalyst)
172+
// Workaround for bug where the picker selection doesn't update when the
173+
// binding value changes on Mac Catalyst.
174+
.id(selection)
175+
#endif
171176
}
172177
}
173178

0 commit comments

Comments
 (0)