Specializing protocols in Swift — Swift by Sundell


Protocols continue to be an integral part of Swift - both in terms of how the language itself is designed, and also in how the standard library is structured. John Sundell takes a look at how we can use protocols to create multiple levels of abstraction, and try out a few different techniques that let us start out with a more general protocol that we then increasingly specialize to become more and more specific to each use case.


Want to receive more content like this in your inbox?