I just read through the SKIE 0.8.0 changelog and s...
# touchlab-tools
d
I just read through the SKIE 0.8.0 changelog and saw the official support for custom Swift wrappers, bundled into the framework 🚀 We do have some wrappers and additions to the Kotlin framework that currently live in the Xcode iOS project. What would be the development ergonomics story when moving those Swift files to the KMP project? Would it be easy to edit and test them in Xcode? Has anyone done this already and can share their experience?
😯 1
f
Hi! There are multiple options for editing the Swift files. If you don’t need a full IDE support and want a quick solution then you can use things like Visual Studio Code which has some limited support for Swift. (or for very simple things I personally just use IDEA even though it has zero support for Swift.) If you want to use Xcode you can for example create a playground project in the Kotlin repo and import those files there. We are working on a builtin support for that use case - something like a Gradley task that would generate the project for you (and there are many other improvement for this feature that we plan on adding). We are also preparing an article about this feature where we will explore it in more detail (including this topic) because there is a lot to talk about - which is why we haven’t officially promoted this release yet.
đŸ”„ 1
As for testing, that again falls into the “there will be some official support in the future” category. Right now the easies solution is to have the tests in a separate project that imports the Kotlin framework (so one option is to keep the tests in your Swift project).
d
Using a Xcode project for development and testing makes sense to me. It’s not particularly urgent for us to move the Swift files to the framework, so I guess I’ll just wait for the article before I dive deeper. Thank you for all the great work you’re doing on SKIE!