Return metatype where type conforms to protocol in Swift
I want a function that returns one of several metatypes, but where those metatypes are constrained such that the types they represent conform to a specific protocol. For example:
I want a function that returns one of several metatypes, but where those metatypes are constrained such that the types they represent conform to a specific protocol. For example: