Touchlab engineers demonstrate how to structure applications to blend Compose Multiplatform and SwiftUI on iOS.
📓 Learn advanced Compose MP + SwiftUI techniques in this 1-hour presentation.
Blending Compose UI and SwiftUI on iOS offers app developers the opportunity to create mostly-native experiences from mostly-shared Kotlin. How you structure your applications will mean the difference between an easy merge of the technologies and a painful architectural mismatch.
We’ll demonstrate how to approach the concept, discuss how we’re approaching this technology with current clients, and discuss the parts of this stack that desperately need fresh libraries and approaches.
In this livestream, we will:
- Create screens with KMP Compose
- Replace UI with SwiftUI, using the same KMP logic
- Discuss the current state-of-the-art, and what’s coming soon…
Speakers: Gustavo Fão Valvassori, Gabriel Souza, Kevin Galligan
✨ Resources:
touchlab.co/codelabs
📖 Chapters:
- Introduction to Multiplatform Compose and Swift UI
- The Case for KMP and Shared UI
- Native vs. Cross-Platform Development
- Implementation Strategies for Shared UI
- Real-World Application: Building with Compose Multiplatform
- Hands-On Coding: Restaurant App Demo
- Handling Platform-Specific Code with Expect/Actual
- Implementing Swift UI Components
- Maintaining State Across Platforms
- Addressing Challenges and Best Practices
- Future Outlook and Call to Action
- Closing Remarks and Thanks
_______________________
🚀 Support:
Looking for more in-depth information on how to get the most out of Touchlab’s open source libraries? Touchlab Pro offers self-guided courses, curated best practices, and access to your private support portal. touchlab.co/tlpro
_______________________
📬 Keep in touch:
linkedin.com/company/touch-lab/twitter.com/TouchlabHQtouchlab.co/keepintouchmastodon.social/@touchlab
#kotlinmultiplatform #swift #iOSDevEx #android #kotlin #ComposeMultiplatform #kotlindeveloper #swiftui #compose
Why it's here
1 person recommends this
What people say. Recommended for developers looking to combine shared Kotlin UI with native SwiftUI.
Moments people linked to
k
u/kpgalliganin r/Kotlin • Recommends
On “🚀 Seeking Feedback from Developers using Kotlin Multiplatform (KMP) 🚀”
…ck of iOS development experience throughout the KMP world. An iOS developer with KMP experience will be in demand.
That was kind of rambling, but I'm merging like three different conference talks and about 15 different blog posts. Difficult to summarize.
To help with thinking about the POC, for Compose, check out our video on blending native UIs link to this video If the team is dead-set on native UI if using KMP, we have a sample app with some info, although it is fairly old at this point (the info, we periodically refresh the app itself): https://github.com/touchlab/KaMPKit. There are a number of others, although pay attention to the age of the content. KMP has progressed rapidly over the past coup…
…s. Most of the Compose effort is Android-only. CMP is pretty new, but Compose on Android has been around for years, and is heavily invested in by the Google Android team.
That is changing. More CMP implementations are emerging. Also, it's fairly easy (if you have some iOS experience) to wrap native views.
We did a livestream about that recently: link to this video
## Overall
The Android portion of this is far more clearly laid out, and you'll be able to learn 80-90% of what you'll need to know for CMP. For relatively simple apps, anyway. You will need to learn iOS dev basics at least. Xcode, build tools, etc. I'd put that off until you're comfortable with Android.…