Swift Advanced Concepts

Protocol Compostion

You can use & to compose multiple protocols.

Dependency injection with the same init that can add new dependency in the future. The trick is to group multiple dependencies in one simple data struct.