How to declare Swift protocol for a specific class

Learn how to create protocols that constrain their conforming types to a given class.

Class-only Protocols: class or AnyObject

If you are still declaring class-only protocols by inheriting them from class, you might need to revise your knowledge.

See all tags.