I have this delegate that conforms to SomeProtocol
weak var delegate:SomeProtocol?
Now I want this delegate to be a subclass of SomeClass
.
How can I do that in one declaration?
Do I have to define a new subclass that both inherits from SomeClass
and conforms to SomeProtocol
?