pixel, (edited ) “This has come up several times on the forums, but I've never written it up in a standard place, so here it is: There are only three ways to get run-time polymorphism in Swift. Well, three and a half.”
#Swift #Programming #Polymorphism #iOS #macOS #visionOS #watchOS #tvOS
https://belkadan.com/blog/2024/04/Run-time-Polymorphism-in-Swift/