Static stored properties not supported in generic types

Declare a static computed property instead, and have it erase the generic parameter into an Any.Type, which you can then wrap in a struct that conforms to Hashable so it can be used as a key in a dictionary that’s stored in a global variable.

1 Like