I have a following decodable class:
class Sample: Decodable {
var something: Array<Any>?
}
extension Sample: Equatable {
static func == (lhs: Sample, rhs: Sample) -> Bool {
return rhs.something ?? [] == lhs.something ?? []
}
}
Gives me the error type Any
does not conform to the protocol.
For everyone information the object type in Array
will be determined only at runtime once I receive response.
Need help.