Skip to content

Instantly share code, notes, and snippets.

@mahmudahsan
Created March 26, 2020 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmudahsan/9e7c0c71046aabc95059e625c737b83b to your computer and use it in GitHub Desktop.
Save mahmudahsan/9e7c0c71046aabc95059e625c737b83b to your computer and use it in GitHub Desktop.
struct ContentView: View {
var body: some View {
HStack {
Text("Gender")
.font(Font.headline)
RadioButtonGroups { selected in
print("Selected Gender is: \(selected)")
}
}.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment