How can i get port of kotlin object classes in swi...
# multiplatform
f
How can i get port of kotlin object classes in swift?
s
IIRC, you can add the
.shared
accessor in Swift to access your
object myKotlinSingletonObject { ...}
instance. Then in swift:
myKotlinSingletonObject.shared
f
Its not clear to me. Little elaboration will be helpful
p
I suggest you either look at our interopedia or post a little of the Kotlin code.
👍 1