Now when iOS stable, is it now possible import Swi...
# compose-ios
j
Now when iOS stable, is it now possible import Swift libraries like Apple Crypto? Or in general combine libraries directly between Kotlin, Swift and ObjC. Thats my main issue at the moment. Also stuff like Firebase.
i
Importing Swift libraries is not a part of Compose (UI Framework), but belongs to Kotlin/Native that was already stable for a while. The feature request about importing Swift without Objective-C bindings is tracked here - https://youtrack.jetbrains.com/issue/KT-49132
👍 2
j
Yeah no good channel ask about it specific for iOS. Just feels very odd promoted iOS to stable without this. In general having bidirectional support at Gradle / deps level across languages. This in general was the most painful stuff not neat work with and always buggy and spent a lot of hours trial and error as all Swift libs unique and behaved different. I expect being able use all official Apple libs, that including SwiftUi libs etc.
I think important couple CMP with Kotlin Native as part of same ecosystem/tooling. I expect being able use basic Crypto stuff in Compose iOS code. Is #C9JM6Q2UX better ask this in?
i
I'll forward it to the right people, thanks for your feedback. It's not the first thread about it
🙏 1
f
@Joel Denke the plugin spm4kmp is the only one where you can import and bridge pure swift API iOS or dependency.
❤️ 2
j
I really recommend SPM for KMP, I'm using it for the Auth0 Swift SDK (Wrote a Bridge to import into Kotlin)
j
Yes tried those but not working on all Swift libs. Not equally well Apple standard to it. Its a massive maintenance job I guess. This was why I was amazed iOS CMP got promoted. But I guess Kotlin Native kind of beta still. Start with using legacy gets same issue as React Native had based on stone edge Gradle in beginning.
f
Waiting for swift import (one day…)
👍 2