I'm trying to let a struct with optionals being codable/decodable but I receive an error message:
Type 'item' does not conform to protocol 'Encodable'
here is the code:
struct Item: Codable {
let domanda: String
let rispostaSemplice: Int?
var rispostaComplessa: [(testoRisposta: String, valoreRisposta: Bool)]?
}
How can I let [(testoRisposta: String, valoreRisposta: Bool)]?
conform?
Thanks
(testoRisposta: String, valoreRisposta: Bool)
into another struct. – Sweeper