https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Farhazul Mullick

02/23/2024, 4:38 PM
How can i get port of kotlin object classes in swift?
s

streetsofboston

02/23/2024, 4:42 PM
IIRC, you can add the
.shared
accessor in Swift to access your
object myKotlinSingletonObject { ...}
instance. Then in swift:
myKotlinSingletonObject.shared
f

Farhazul Mullick

02/23/2024, 7:17 PM
Its not clear to me. Little elaboration will be helpful
p

Pamela Hill

02/25/2024, 1:21 PM
I suggest you either look at our interopedia or post a little of the Kotlin code.
👍 1