Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
enum Fruit: String, CaseIterable {
case apple, orange, pear
func makeFruitPicker() -> some View {
Picker("Fruits", selection: $selectedFruit) {
ForEach(Fruit.allCases, id: \.rawValue) { fruit in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment