SwiftUI: Mapping Firestore Documents using Swift CodableApplication Architecture for SwiftUI & Firebase Last time, we looked at how to connect a SwiftUI app to a Firebase project and synchronise data in real time. If you take a look at the code we used for mapping from Firestore documents to our Swift model structs, you will notice that is has a number of issues: self.books = documents.map { query