Quoting the Swift Programming Language Guide :
Extensions can add new computed properties, but they cannot add stored properties, or add property observers to existing properties.
Why is that ? What's the technical or logical reason behind this ?
Quoting the Swift Programming Language Guide :
Extensions can add new computed properties, but they cannot add stored properties, or add property observers to existing properties.
Why is that ? What's the technical or logical reason behind this ?
In simple words
Because properties need storage, adding properties would change the memory structure of the class