I need an array of writable keypaths to edit variables, but the Class is undefined. How could I do something like this ?
var properties: [ WritableKeyPath< AnyClass, Double > ]
properties.append( \Class1.tag )
properties.append( \AnyClass2.volume )
func setPropertie (keyIndex: Int, value : Double) {
anyObject[keyPath: properties[keyIndex] ] = value
}
In this case, trying to append( \Class1.tag ) got this error: Type 'AnyClass' (aka 'AnyObject.Type') has no member 'threshold'