Swiftui Wheel Picker

[Solved] Swiftui Wheel Picker | Swift - Code Explorer | yomemimo.com
Question : swiftui wheel picker

Answered by : tony-sacco

struct ContentView: View { @State private var selectedStrength = "Mild" let strengths = ["Mild", "Medium", "Mature"] var body: some View { NavigationView { Form { Section { Picker("Strength", selection: $selectedStrength) { ForEach(strengths, id: \.self) { Text($0) } } .pickerStyle(.wheel) } } .navigationTitle("Select your cheese") } }
}

Source : https://www.hackingwithswift.com/quick-start/swiftui/pickers-in-forms | Last Update : Tue, 20 Sep 22

Answers related to swiftui wheel picker

Code Explorer Popular Question For Swift