title: SwiftUI Toggle Cannot convert value of type 'Bool?' to expected argument type 'Binding<Bool>'
body: <p>With SwiftUI, I'm trying to set the toggle value, but it talk me
  <code>Cannot convert value of type 'Bool?' to expected argument type 'Binding&lt;Bool&gt;'</code>
  I Get data from the server, and Decodable the json create my model get data is successful,
  but when I want to change the Toggle it's Get the error.</p>
  <p>MY CODE:</p>
  <pre><code>    struct content: View {
          @ObservedObject var articles = Article()
      
          var body: some View{
              
              VStack{
                  List{
                      ForEach(articles.article, id: \.id){article in
                          
                          NavigationLink(destination: DetailView()) {
                                  
                                  ListContent(article: article)
                      }      
                  }
              
                  }        
              }
           }
      }
  
  
  struct ListContent: View {
      var article: Article
      
      var body: some View {
          HStack {
              VStack (alignment: .leading) {
  
                Toggle(&quot;&quot;, isOn: self.article.isActive)
                  .onChange(of: self.article.isActive) { value in
                      print(value)
                  }
                  
              }
              .padding(.leading,10)
              
              Spacer(minLength: 0)
              
          }     
      }
  }
  </code></pre>
  <p>I can't use self.article.isActive in my code
  I'm afraid I'm doing something wrong or maybe I don't get how the Toggle work with isOn.</p>
  <p>Any help or explanation is welcome! Thank you.</p>