title: SwiftUI: Cannot convert value of type 'Bool' to expected argument type 'Binding<Bool>'
body: <p>Creating a text-based game for SwiftUI</p>
  <p>Wondering why can't I access isSelected in character ForEach loop? It gives the error:</p>
  <blockquote>
  <p>Cannot convert value of type 'Bool' to expected argument type 'Binding&lt;Bool&gt;'</p>
  </blockquote>
  <p>on the line <code>Toggle(isOn: character.isSelected){</code></p>
  <p>Variable object declaration:
  <code>@Binding var characters: [Character]</code></p>
  <p>Code here:</p>
  <pre><code>VStack {
      ForEach(characters) { character in               
          HStack{
              VStack(alignment:.leading) {
                  Text(&quot;\(character.name)&quot;)
                      .fontWeight(.bold)
  
                  Text(&quot;\(character.description)&quot;)
                  .lineLimit(10)
                      
              }
              Spacer()
              Toggle(isOn: character.isSelected){
                  Text(&quot;a&quot;)
              }.labelsHidden()
  </code></pre>