Alejandro Martinez

26 August, 2014Swift🕐 1min read

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 have any feedback you can reach me at alexito4


Alejandro Martinez

Buka pintu