How to Achieve Dynamic Dispatch Using Generic Protocols in Swift 5.7
It’s never been easier!
Published in
5 min readJul 6, 2022
Dynamic dispatch is one of the most important mechanisms in Object-Oriented Programming (OOP). It is the core mechanism that makes run-time polymorphism possible, enabling developers to write code that decides their execution path during run-time rather than compile-time.