Apple\'s swift documentation on Type Properties states:
\"For value types (that is, structures and enumerations), you can define stored and computed type properties. For
In your example, the stored property in the class is a static
property. But you'll notice there's no stored property in the class that is a class
property; that's what's unsupported:
class SomeClass {
static var storedTypeProperty = "Some value."
static var computedTypeProperty: Int {
// return an Int value here
}
// class var overrideableStoredTypeProperty = "Some value." // NO
class var overrideableComputedTypeProperty: Int {
// return an Int value here
}
}