Use This Attribute To Require That All Class Properties Are Initialized
Daily Coding Tip 190
Here’s an attribute that can be applied to classes.
If I add a property to a class called MyClass, for instance var string: String, the compiler will complain that MyClass has no accessible initializers. It won’t actually have an issue with you creating an initializer that doesn’t actually do anything to set the string,…


