How do I access the `values` array of a Kotlin enu...
# kotlin-native
a
How do I access the
values
array of a Kotlin enum class from Swift/ObjC?
a
This function is available only from the Kotlin side. But, I think that one can wrap it, and call the wrapper from the Swift/Obj-C whenever it’s needed.
a
@Artyom Degtyarev [JB] thanks I'll give it a try. Do you know if it will work with ObjC/Swift generics so I can create only one wrapper, or will I have to create one for each enum impl I want to be able to enumerate from the Swift side?
Hrm... actually probably won't work with a common method as enumValues requires a reified generic I guess..