title: How to fix "Extra arguments at positions #1, #2 in call" with SwiftUI
body: <p>I'm currently developing my first iOS app and I have an error &quot;Extra arguments at positions #1, #2 in call&quot; at the last line of this code.</p>
  <p>Can someone please tell me what I'm doing wrong here?</p>
  <pre><code>import Foundation
  import Firebase
  
  class NotificationsViewModel: ObservableObject{
      @Published var notifications = [Notification]()
      
      private var db = Firestore.firestore()
      private var user = Auth.auth().currentUser
      private lazy var uid = user!.uid
      
      
      func fetchData() {
          db.collection(&quot;users/\(uid)/notifications&quot;).addSnapshotListener { querySnapshot, error in
              guard let documents = querySnapshot?.documents else {
                  print (&quot;No documents&quot;)
                  return
              }
              
              self.notifications = documents.map { (queryDocumentSnapshot) -&gt; Notification in
                  let data = queryDocumentSnapshot.data()
                  
                  let title = data[&quot;title&quot;] as? String ?? &quot;&quot;
                  let description = data[&quot;description&quot;] as? String ?? &quot;&quot;
                  
                  return Notification( title: title, description: description)
              }
          }
      }
  }
  </code></pre>
  <p>Here the Notification model :</p>
  <pre><code>import Foundation
  
  struct Notification: Identifiable{
      var id: String = UUID().uuidString
      var title: String
      var description: String
  }
  </code></pre>