Tagged: Protocol

There are 3 items tagged #Protocol.
And there a lots of other tags to explore.

Existential any in Swift, and when it becomes required

The any keyword makes the cost of an existential type visible. Here is what a bare protocol name was hiding, where the migration actually stands today, and how to turn the warnings on early.

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.