Let say I have the following protocol :
protocol DataResponse { .... }
My question is, how can I make another protocol like the following? :
protocol AnotherProtocol { var data:[DataProtocol] { get } }
When I am trying to do the above in my Struct
below, I get Type 'MyStruct' does not conform to protocol 'AnotherProtocol'
struct myStruct : AnotherProtocol {
var data:[a struct implements DataProtocol] ...
}