Question : swiftui radio button
Answered by : tony-sacco
Picker(selection: $avocadoStyle, label: Text("Avocado:")) { Text("Sliced").tag(AvocadoStyle.sliced) Text("Mashed").tag(AvocadoStyle.mashed)
}.pickerStyle(RadioGroupPickerStyle())
Source : https://stackoverflow.com/questions/58580027/how-to-create-radiobuttons-in-swiftui | Last Update : Thu, 21 Jul 22