title: SwiftUI PickerView with working CallBack HOW?
body: <p>Ok -</p>
  
  <p>I want a picker view to pick one operator:  "=","&lt;",">"
  This operator will be sent as a binding:</p>
  
  <pre><code>@Binding var op:String
  </code></pre>
  
  <p>My Picker:</p>
  
  <pre><code>Picker(selection: binding, label: Text("Query Type")) {
              ForEach(0..&lt;self.operators.count) { index in
                  Text(self.operators[index]).tag(index)
              }
          }.pickerStyle(SegmentedPickerStyle())
              .padding()
  </code></pre>
  
  <p>Now My Binding with CallBack:</p>
  
  <pre><code>let binding = Binding&lt;Int&gt;(
      get: {
          return self.pickerSelection
      },
      set: {
          //pickerSelection = $0
          print("SETTTING: \($0)")
          self.op = self.operators[self.pickerSelection]
          self.queryCallback()
  
      })
  </code></pre>
  
  <p>So, I can set the pickers perfectly. BUT, when I go back to edit my data, the picker never can choose the existing bound operator, say "&lt;"</p>
  
  <p>I put in the init an:<br>
      pickerSelection = operators.firstIndex(opValue)</p>
  
  <p>However this will just start an infinite loop as pickerSelection is a @State variable</p>
  
  <p>Anyone have a solution?</p>