Quick tip: Enum class for defining constants in swift

Just in case someone will find it useful:

and then:

or if you need int value:

 

 

 

Leave a Reply