0

im currently developing a KMP project, where I have to dynamically change values based on a path. In JVM Projects I can use Spring Expression Language that does this reflection based.

In Swift and iOS you can do use KVC. The restriction is, that im in a KMP project, so im writing Kotlin code, where I don't have access to KVP, because the Any class does not derive from NSObject.

Is it valid to do something like this:

(Test(1) as NSObject).setValue(2, "id") 

in the iOS part of my project to be able to use KVP or is it not possible at all?

Ditscheridou
  • 381
  • 1
  • 5
  • 18

0 Answers0