Protocol Composition — Swift
While working with protocols in swift, you might have written a type conforming to multiple protocols.
Here comes Protocol Composition a technique to combine multiple protocols into a single representation.
How it is written:

The problem with it is if there are too many protocols then the conformance code looks weird.
Better way of representing it is using typealias, like this;

The most common example of protocol-composition you might have used is Codable protocol; yes it is a composition of two different protocols Encodable and Decodable.
Thanks for reading.