Replies: 1 comment
-
|
If there are any other ways or alternative approaches other that defining the function in the Kotlin interface with a return value of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I stumbled upon this discussion concerning interoperability of
kotlin.Resultwith Swift.https://slack-chats.kotlinlang.org/t/22701000/hi-can-skie-handle-kotlin-result-lt-t-gt-type-in-a-way-to-ha#4df86fdf-fe07-446e-bac6-29f6104213f7
I think it would be a great idea to interop
kotlin.ResultwithSwift.Result. They both do very much the same thing.Because currently,
kotlin.Resultalways causes type information to be lost when used in Swift.My specific use case involves implementing a Kotlin interface in Swift where some functions return
kotlin.Resultbut when using the "add stubs for conformance" fix in Xcode, the inserted code has the same functions with return typeAny?.Beta Was this translation helpful? Give feedback.
All reactions