Swift: check if generic type conforms to protocol

前端 未结 8 1521
[愿得一人]
[愿得一人] 2020-12-07 17:24

I have a protocol that I defined like so:

protocol MyProtocol {
   ...
}

I also have a generic struct:

struct MyStruct <         


        
8条回答
提交回复
热议问题