title: Picker selection not updating
body: <p>I'm trying to select a default account number from a list of available accounts.  The data is from an FMDB data selection.  I've created a test view with two types of pickers in it.  One that lists the accounts I've retrieved into an array of data records which is a swift struct.  The other picker is one that comes from an on-line example to select colors.  The colors &quot;selection&quot; bound value updates as expected, but the &quot;selection&quot; bound value that I set does not change when one of two accounts is presented and selected.  Below is the code from my test view that compiles and runs.  When I select either account value which is [12345678] or [12345679] which appear as two rows in the picker the selection binding value doesn't change.  But for the colors selection value it updates.  I'm pretty confused here...</p>
  <p>The struct for the accounts record is:</p>
  <pre><code>    // Account record for FMDB
      struct AccountRecord: Hashable {
          var account_id: Int!
          var account_code: Int!
          var account_name: String!
          var running_balance: Double!
          var hidden_balance: Double!
          var actual_balance: Double!
      }
  </code></pre>
  <pre><code>  import SwiftUI
  
    struct PickerTestView: View {
      
      @State private var selectedAccount = 0
      @State private var selectedColor = 0
      
      var acctRecords: [Accounts.AccountRecord] {
          return Accounts.shared.selectAllAccounts()
      }
      var colors = [&quot;Red&quot;, &quot;Green&quot;, &quot;Blue&quot;, &quot;Tartan&quot;]
      
      var body: some View {
          VStack{
              Picker(selection: $selectedAccount, label: Text(&quot;&quot;))
              {
                  ForEach (self.acctRecords, id: \.self) { acct in
                      Text(&quot;\(acct.account_code!)&quot;)
                  }
              }
              
              Text(&quot;selectedAccount = \(selectedAccount)&quot;)
                  .font(.largeTitle)
              
              Picker(selection: $selectedColor, label: Text(&quot;Please choose a color&quot;)) {
                  ForEach(0 ..&lt; colors.count) {
                      Text(self.colors[$0])
                  }
              }
              
              Text(&quot;Selectedcolor = \(selectedColor)&quot;)
              Text(&quot;You selected \(colors[selectedColor])&quot;)
              
              
          }
      }
    }
  
    struct PickerTestView_Previews: PreviewProvider {
        static var previews: some View {
            PickerTestView()
        }
    }
  </code></pre>