trying to build a lazyVGrid and getting error in looping the grid.
below is the error getting in my code
and here is my model file
and below is the model,
struct HomeEmailsDataModel: Decodable,Identifiable {
var id = UUID()
let firstname, lastname: String?
let threadID: Int?
let status: String?
let readReceiptStatus: Int?
let passwordHash, passwordHint: String?
let passwordProtected, isChecked: Int?
let type: String?
let starred: Int?
let labels: String?
let subject, body: String?
let sentAt, senderUserID: Int?
enum CodingKeys: String, CodingKey {
case id, firstname, lastname
case threadID = "threadId"
case status, readReceiptStatus, passwordHash, passwordHint, passwordProtected, isChecked, type, starred, labels, subject, body, sentAt
case senderUserID = "senderUserId"
}
}
Gurung_iOS Developer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.