Swift property observer in protocol extension?
No, this is explicitly disallowed. See Extension: Computed Properties: Extensions can add new computed properties, but they cannot add stored properties, or add property observers to existing properties. Keep in mind that if this were legal, it would add some non-trivial confusion about order of execution. Imagine there were several extensions that added didSet, and … Read more