Using generic type constraints in Swift 4

One such feature is generic type constraints. Using them, you are able to only add certain APIs and behaviors to implementors of a generic type that match a certain set of constraints. This week, let's take a look at some techniques and patterns that are made possible because of type constraints, and how they can be used in practice - focusing on some of the new capabilities that were recently introduced with Swift 3.1 & 4.


Want to receive more content like this in your inbox?