Protocols in Swift
What is Protocol?
In simple terms a protocol is an interface which defines properties and methods. So any type that conforms to the protocol should implement the methods and properties requirements that are defined.
Protocols - The Swift Programming ...
codetimeline.com5 min read