title: Extra arguments at positions #11, #12 in call SwiftUI
body: <p>I keep on getting an &quot;Extra arguments at positions #11, #12 in call&quot; error on my toggle switch in SwiftUI. I've seen other people have the &quot;Extra Arguments in call&quot; error, but the answers didn't seem to help; plus, my error says &quot;positions #11, 12&quot;, which I haven't seen happen for others. I am using the Xcode 12 beta if that makes a difference.</p>
  <pre><code>import SwiftUI
  
  let defaults = UserDefaults.standard
  
  let notifsEnabled = defaults.bool(forKey: &quot;NotifsEnabled&quot;)
  
  
  
  
  struct Settings: View {
      @State var class11: String = defaults.string(forKey: &quot;class11&quot;) ?? &quot;&quot;
      @State var class12: String = defaults.string(forKey: &quot;class12&quot;) ?? &quot;&quot;
      @State var class13: String = defaults.string(forKey: &quot;class13&quot;) ?? &quot;&quot;
      @State var class14: String = defaults.string(forKey: &quot;class14&quot;) ?? &quot;&quot;
      
      @State var class21: String = defaults.string(forKey: &quot;class21&quot;) ?? &quot;&quot;
      @State var class22: String = defaults.string(forKey: &quot;class22&quot;) ?? &quot;&quot;
      @State var class23: String = defaults.string(forKey: &quot;class23&quot;) ?? &quot;&quot;
      @State var class24: String = defaults.string(forKey: &quot;class24&quot;) ?? &quot;&quot;
      
      @State var scheduleNotifications = notifsEnabled
      
      
      
      var body: some View {
          
          VStack(alignment: .leading) {
              
              Toggle(isOn: $scheduleNotifications) { //Extra arguments at positions #11, #12 in call
                  Text(&quot;Daily schedule notifications&quot;)
              }
              
              if scheduleNotifications {
                  Text(CreateNotifs())
              } else {
                  Text(DeleteNotifs())
              }
              
              
              
              Text(&quot;This App will send you a reminder each day at 8:25 with the schedule for that day&quot;)
                  .font(.caption)
                  .foregroundColor(Color.gray)
              
              
              Divider()
              
              TextField(&quot;Class 1-1&quot;, text: $class11)
              
              TextField(&quot;Class 1-2&quot;, text: $class12)
              
              TextField(&quot;Class 1-3&quot;, text: $class13)
              
              TextField(&quot;Class 1-4&quot;, text: $class14)
              
              TextField(&quot;Class 2-1&quot;, text: $class21)
              
              TextField(&quot;Class 2-2&quot;, text: $class22)
              
              TextField(&quot;Class 2-3&quot;, text: $class23)
              
              TextField(&quot;Class 2-4&quot;, text: $class24)
              
              
              
              //Spacer()
          }
          .padding()
          .navigationBarTitle(&quot;Settings&quot;)
          
      }
      
  }
  
  
  
  
  
  
  </code></pre>