title: SwiftUI Picker greyed out in a List
body: <p>Does anyone have a fix for this? I have a <code>Picker</code> in my <code>List</code> that doesn't respond to any user input and is greyed out, but if I move it out of the <code>List</code> and into a <code>VStack</code> it functions normally.</p>
  <p>The majority of answers I've found to this question all say that the <code>Picker</code> needs to be in a <code>Form</code> to work (which I don't understand since it works fine in a <code>VStack</code>), or that its a bug in which it only works on a physical device, which I've also tested on and gotten the same result.</p>
  <p>I'll provide a screenshot as well as the code I'm using below</p>
  <p><a href="https://i.stack.imgur.com/Aj36P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Aj36P.png" alt="Picker in simulator" /></a></p>
  <pre><code>import SwiftUI
  struct SettingsView: View {
      
  @Binding var age : Int
  
  var body: some View {
          VStack(alignment: .leading){
                  List{  
                          Picker(&quot;Your age&quot;, selection: $age) {
                                  ForEach(1...100, id: \.self) { number in
                                      Text(&quot;\(number)&quot;)
                                             }
                                  }
                      }
          }
  }
  </code></pre>