Alexito's World

A world of coding 💻, by Alejandro Martinez

Swift extensions and inheritance

This is another thing about extensions that I was not expecting. The other day while implementing Jlaner I had some problems with extensions.

The problem is that you can't overwrite methods from a protocol that is conformed in an extension. So, for now, extensions don't play very well with inheritance.

You can see this playground with the problem.

If you liked this article please consider supporting me