Skip to content

Conversation

@danil-pavlov
Copy link
Contributor

No description provided.

@danil-pavlov danil-pavlov requested a review from a team as a code owner November 26, 2025 15:49
@danil-pavlov danil-pavlov requested a review from mMaxy November 26, 2025 15:49
Copy link

@mMaxy mMaxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@danil-pavlov danil-pavlov requested a review from zamulla December 4, 2025 14:47
Copy link
Contributor

@zamulla zamulla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

I left several suggestions, some of which are debatable but feel like clarity improvements to me. Let me know what you think.


You can create an interface or use Swift closures for the "expected" part. The interface-based approach scales better
for multiple functions and testability. Closures are great for quick prototypes, but the approach has its limitations —
for example, it doesn't hold state.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little hard to discern the two options, I would suggest transforming this into a list (I'm for removing quotation marks here too, I think it's clear what we're referring to):

You can implement the expected part in one of two ways:

  • Create an interface. This approach scales better...
  • Use closures. They are great for...

</tab>
</tabs>

In a more complex project, it's more convenient to use dependency injection to pass the Swift implementation back to Kotlin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do a what's next here? expect/actuals?

Koin has a huge article on this, maybe mention them until we have our own resource on this: https://insert-koin.io/docs/reference/koin-mp/kmp/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea, I added links to both our explanation of the DI and Koin's

danil-pavlov and others added 2 commits December 8, 2025 15:22
Co-authored-by: Aleksey Zamulla <aleksey.zamulla@jetbrains.com>
@danil-pavlov danil-pavlov requested a review from zamulla December 8, 2025 14:45
Copy link
Contributor

@zamulla zamulla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@danil-pavlov danil-pavlov merged commit 12aae40 into 2-3-0-doc-update Dec 8, 2025
@danil-pavlov danil-pavlov deleted the swift-lib-import branch December 8, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants