Since it is moved to the stdlib, what should it be exported as?
Kotlin_timeInstant
is not found, neither is just Instant.
d
Dmitry Khalanskiy [JB]
07/21/2025, 11:08 AM
I don't know the actual answer, but here are some pointers.
The general approach of making Kotlin APIs available from native code: https://github.com/Kotlin/kotlinx-datetime/issues/78
Converter functions that allow you to avoid exposing
I just want to change the return type of this Swift function.
curioustechizen
07/22/2025, 6:58 AM
Okay I found out that the I need to use
KotlinInstant
in place of
Kotlinx_datetimeInstant
However like Dmitry mentioned above, this is probably not the best approach. I should change my APIs such that Instant should never have to be used directly from Swift.