title: How to create a radio button group with custom PickerStyle?
body: <p>PickerStyle offers WheelPickerStyle, SegmentedPickerStyle and more. I want to customise it create a radio buttons that only one should be selected at a time.</p>
  
  <p>I am Android Developer and very new to swift. I am using <strong>SwiftUI</strong> for my UI needs.</p>
  
  <p>I looked into the documentation and there is a PickerStyle protocol but I am not able to implement it and didn't find any tutorial. I have following code for this:</p>
  
  <pre><code>struct RadioPickerStyle: PickerStyle {
  
      static func _makeView&lt;SelectionValue&gt;(value: _GraphValue&lt;_PickerValue&lt;RadioPickerStyle, SelectionValue&gt;&gt;, inputs: _ViewInputs) -&gt; _ViewOutputs where SelectionValue : Hashable {
  //        Text("\(value)")
      }
  
      static func _makeViewList&lt;SelectionValue&gt;(value: _GraphValue&lt;_PickerValue&lt;RadioPickerStyle, SelectionValue&gt;&gt;, inputs: _ViewListInputs) -&gt; _ViewListOutputs where SelectionValue : Hashable {
  //        List(inputs) {
  //            ForEach
  //        }
      }
  
  </code></pre>
  
  <p>I want to use it in the following code:</p>
  
  <pre><code>...
      @State var gender: Int = 0
      let genderOptions: [String] = ["Male", "Female", "Other"]
  ...
                      Picker("Gender", selection: $gender) {
                          ForEach(0 ..&lt; genderOptions.count) { option in
                              Text(self.genderOptions[option])
                                  .tag(self.gender)
                          }
                      }
                      .pickerStyle(RadioPickerStyle())
  ...
  </code></pre>
  
  <p>Does anyone can give me idea of what is <code>_ViewInputs</code>, <code>_ViewOutputs</code> ,<code>_ViewListInputs</code> and <code>_ViewListOutputs</code>?</p>