I’m not sure why many developers (even some senior developers) confuse Protocols with Object and Struct. You can think of Protocols as a superclass with some rules. When you conform to that class you’ll have to simply obey those rules. In this case these rules can be methods and properties. Let’s look at an example […]
You are here: Home / Archives for Protocol