You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using Result<V, E> for quite some time in a KMP project targeting Android and iOS. I've successfully consumed instances of Result from Swift. It is not pretty and results in some loss of safety but it works.
Now I have a situation where I want to produce an instance of Result from Swift. Are there examples on how to go about doing this?
The text was updated successfully, but these errors were encountered:
Sorry somehow this notification slipped through my fingers.
I'm aware of the basics of calling Kotlin code from Swift. The problem was more related to how to make the Ok() and Err() constructors visible from the Swift side, especially if kotlin-result is a transitive dependency and not visible to the Swift side directly.
For now I refactored my code to avoid having to create instances of kotlin-result on the Swift side. However if I end up having more situations that require this then I will revisit and post a follow up here.
I've been using
Result<V, E>
for quite some time in a KMP project targeting Android and iOS. I've successfully consumed instances of Result from Swift. It is not pretty and results in some loss of safety but it works.Now I have a situation where I want to produce an instance of Result from Swift. Are there examples on how to go about doing this?
The text was updated successfully, but these errors were encountered: