Generics are a great feature of Swift that allow you to generalize and reuse code in ways that would not be possible otherwise.
They are also a quite advanced feature and become a roadblock for many developers. The iOS SDK uses generic extensively, something that is especially true in SwiftUI.
In this article, I will show why generics exist and how to use them in your apps.