Extensions must not contain stored properties
Extensions must not contain stored properties
Seen this error ? I bet yes if you have done any basic Swift coding at all.
Ever wondered why Swift compiler complains about this, or you just didn't care as long as you can move the property back to the class itself from the extension and be done with it ? Yes, that is one way to do it, but not the best way to do it.
The following code (also given in the above image) will surely throw the error at your face.
protocol ProtocolWithSyntaxErrors {