https://kotlinlang.org logo
#ios
Title
# ios
x

xxfast

08/23/2022, 6:11 AM
Hi all. Is there a way to make a kotlin object implement
Identifiable
interface from swift?
2
j

John O'Reilly

08/23/2022, 8:04 AM
x

xxfast

08/23/2022, 8:44 AM
There's no way to achieve this from
commonMain
due to lack of direct swift interop, is that correct?
j

John O'Reilly

08/23/2022, 8:45 AM
I believe so but tbh I haven't tried doing that
x

xxfast

08/23/2022, 8:46 AM
its cool how you can make objects implement any interface with an extension - maybe kotlin should also do this
This would make the proxy/decorator implementations a lot more simpler
4 Views