Generics are a really powerful feature of swift. And if you use them properly you will reduce code duplication and make your code a lot more readable. Read this post if you don't know how to use Generics in your project.