Just in case someone will find it useful:
1 2 3 4 5 |
class MyClass { enum myConst: Int { case SomeValue = 1 } } |
and then:
1 |
var aPlanet = MyClass.MyConst.SomeValue |
or if you need int value:
1 |
var myInt = MyClass.MyConst.SomeValue.toRaw() |