hello folks :wave: Let’s say I have an abstract c...
# ios
n
hello folks 👋 Let’s say I have an abstract class in Kotlin that is subclassed from Swift. This subclass is then instantiated and passed to Kotlin code. Is there a way to get Swift’s subclass name from Kotlin?
p
There is no reflection available. However you could add an abstract function where each class returns its own name
l
Or an abstract property (which is a technically a method)
n
thanks folks, that’s exactly what I ended up doing.