Swift extensions are probably one of the most powerful features of the language.
You can place extra code in extensions and it will be as if the code was in the entity itself.
In short: “Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type.”
|
|
|
|
Originally published 04/12/2021 @ https://pittcsc.org/ Discord
Published here on 09/08/2022. Blog published date reflects the original date of publication.