```swift

@State private var selectedFlavor: Flavor = .chocolate

var body: some View {
Form {
Picker("Flavor",
selection: $selectedFlavor) {
ForEach(Flavor.allCases) {
Text($0.description)
.tag($0)
}
}
).pickerStyle(.automatic)
}
}

```

Get New Tutorials by Email

No spam. Just clear, practical breakdowns you can apply right away.

Enjoy this tutorial?

Get new practical tech tutorials in your inbox.