27 August 2014 0min 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 enjoyed this post

Continue reading