Are there any good guides/tutorials on transitioni...
# multiplatform
r
Are there any good guides/tutorials on transitioning a KMP app with Native UI (Jetpack Compose and SwiftUI) into using Compose Multiplatform? That is, if I have a large and functional KMP codebase that uses Compose and SwiftUI to build targets for Android and iOS, convert that into a codebase that keeps the same shared code and uses CMP on both platforms - preferably without having to start a new project from scratch. Just to be clear, it's not the CMP itself I need help with. I've been working with it for a little while, and I think I can handle the transition from Android-only Compose to CMP. I'm more concerned about the structure of the project, the build files, etc.
m
If you are looking to fully migrate to CMP, that may end up being a fully new app on the iOS side. Is that what you are after? If you are interested in keeping your iOS Native UI in Swift and sharing the business logic, I can share some extensive guidance we are working on (not yet published). It would be good to get your feedback. Let me know.
r
I'm already using Compose and SwiftUI with shared business logic in Kotlin. What I'm interested in is transitioning the codebase to a full Compose Multiplatform app (using Swift code where necessary, of course).
I know this will require some changes to the Compose code, like updating references to String resources, and that's tedious but I can handle it. I also know there will be some platform-specific UI that I'll have to pull out, and that's fine too. My main concern is the build files and the overall structure of the codebase; I don't know how difficult it will be to make that transition.
d
Could you create a new project using the wizard and compare the gradle-related files?
r
Yeah, that's a good idea