Closed flexaddicted closed 1 year ago
The problem is with @DocumentID
.
Here's a sample solution:
struct Document: Codable, Equatable, Identifiable {
@DocumentID var documentId: String?
let title: String
let index: Int
let detailItems: [DetailItem]
var id: String {
documentId ?? UUID().uuidString
}
}
Closing the issue since resolved.
Hi all,
Using the following code, I'm not able to compile the app since receiving the error:
A type mismatch should be the cause of the problem but I cannot find any solution.
Any suggestions?
Thanks, Lorenzo