Swift: Simple, Safe, Inflexible
medium.com
medium.com
Is that possible? The subclass could live in your application, and the extension method in a plug-in that isn't known to the application (needn't even be on the system or _exist_ when you launch the application)
That may work, but I would have to think hard about all kinds of weird scenarios before being sure of it.
You shouldn't really get to mess with someone else's implementation... that's partly what subclassing is for and that's where it should get fixed. I'm not really familiar with the barrier here since Swift isn't available on my platform, but I can't think of a reason for it to be such a problem, unlike the the other road.