There I have two Protocol:
1.
protocol BaseProtocol {
associatedtype T: Identifiable<String>
var array: [T]
}
protocol AnotherProtocol: Identifiable<String> {
var id: String
}
Then I try to do this, but not woking, said "does not conform to protocol"
struct MyStruct: BaseProtocol {
//no working
var array: [any AnotherProtocol]
//or:
typealias T = any AnotherProtocol // Same, not working
}
Is that impossible to do that?